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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class LineType(Enum):
@dataclass
class Line:
	"""	Represents a line in the markdown file. """
	text:str
	text:str = ''
	lineType:LineType = LineType.TEXT


@@ -345,7 +345,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False
				if not includeHangingParagraphs:
					clauses[i].lines = []
				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.
	# Add 2 spaces to existing 2-space indentions