Skip to content

Commit

Permalink
modified info panel text for grammar and style + spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Pronex authored and szn committed Sep 12, 2024
1 parent 276a8c4 commit 7f513ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/md2cf/utils/confluencemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def __attach_images(
self, page_id: str, images: List[Tuple[str, str]]
) -> None:
"""Replaces <img> html tags with Confluence specific <ac:image> 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):
Expand Down Expand Up @@ -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)
6 changes: 3 additions & 3 deletions src/md2cf/utils/md2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def __get_info_panel(md_file: str) -> str:
if --add_info is added
"""
return f"""
<p><strong>Automatic content</strong> This page was generated automatically from
<code>{md_file}</code> file.Do not edit it on Confluence.</p><hr />
<p><strong>Automatic content</strong> - Do not edit this page in Confluence.
Page automatically generated from: <code>{md_file}</code></p><hr />
"""

def __get_images_from_file(md: str) -> List:
Expand All @@ -82,7 +82,7 @@ def __rewrite_images(html: str,
images: List[Tuple[str, str]]
) -> str:
"""Replaces <img> html tags with Confluence specific <ac:image> 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):
Expand Down

0 comments on commit 7f513ba

Please sign in to comment.