and uploads
- images as attachements"""
+ images as attachments"""
for (_alt, path) in images:
rel_path = os.path.join(self.md_file_dir, path)
if not os.path.isfile(rel_path):
@@ -306,7 +306,7 @@ def __get_file_contents(file: str) -> str:
def __add_label_to_page(self, page_id: str) -> None:
- """Selfdescriptive"""
+ """Self descriptive"""
if not self.add_label:
return
self.set_page_label(page_id, self.add_label)
diff --git a/src/md2cf/utils/md2html.py b/src/md2cf/utils/md2html.py
index 96f0c8f..53cdee8 100644
--- a/src/md2cf/utils/md2html.py
+++ b/src/md2cf/utils/md2html.py
@@ -64,8 +64,8 @@ def __get_info_panel(md_file: str) -> str:
if --add_info is added
"""
return f"""
- Automatic content This page was generated automatically from
- {md_file}
file.Do not edit it on Confluence.
+ Automatic content - Do not edit this page in Confluence.
+ Page automatically generated from: {md_file}
"""
def __get_images_from_file(md: str) -> List:
@@ -82,7 +82,7 @@ def __rewrite_images(html: str,
images: List[Tuple[str, str]]
) -> str:
"""Replaces html tags with Confluence specific and uploads
- images as attachements"""
+ images as attachments"""
for (alt, path) in images:
rel_path = os.path.join(md_file_dir, path)
if not os.path.isfile(rel_path):