Skip to content

Commit

Permalink
Add horizontal line between properties
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <[email protected]>
  • Loading branch information
obulat committed Mar 12, 2024
1 parent 39a6dc2 commit 8d685d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def generate_long_form_doc(markdown_descriptions: dict, media_properties: dict)
prop_doc = "".join(
[f"{Md.heading(4, k)}{Md.line(v)}" for k, v in description.items()]
)
media_docs += prop_heading + prop_doc
media_docs += prop_heading + prop_doc + Md.horizontal_line

return media_docs

Expand Down
2 changes: 2 additions & 0 deletions catalog/utilities/media_props_gen/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


class Md:
horizontal_line = "\n---\n\n"

@staticmethod
def heading(level: int, text: str) -> str:
"""Add a heading to a markdown string."""
Expand Down

0 comments on commit 8d685d2

Please sign in to comment.