Skip to content
Snippets Groups Projects
Commit 50498d23 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Add title for hanging paragraph in nav

parent 8c01eec8
Branches
Tags
No related merge requests found
...@@ -34,7 +34,7 @@ class LineType(Enum): ...@@ -34,7 +34,7 @@ class LineType(Enum):
@dataclass @dataclass
class Line: class Line:
""" Represents a line in the markdown file. """ """ Represents a line in the markdown file. """
text:str text:str = ''
lineType:LineType = LineType.TEXT lineType:LineType = LineType.TEXT
...@@ -345,7 +345,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False ...@@ -345,7 +345,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False
if not includeHangingParagraphs: if not includeHangingParagraphs:
clauses[i].lines = [] clauses[i].lines = []
else: else:
clauses[i].lines = [Line("<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>")] + clauses[i].lines clauses[i].title = "Hanging Paragraph"
clauses[i].lines = [Line("<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>"), Line()] + clauses[i].lines
# Repair wrong markdown for indented lines. # Repair wrong markdown for indented lines.
# Add 2 spaces to existing 2-space indentions # Add 2 spaces to existing 2-space indentions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment