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

Fix title for hanging paragraph in nav

parent 50498d23
No related branches found
No related tags found
No related merge requests found
...@@ -345,8 +345,7 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False ...@@ -345,8 +345,7 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False
if not includeHangingParagraphs: if not includeHangingParagraphs:
clauses[i].lines = [] clauses[i].lines = []
else: else:
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
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
...@@ -511,7 +510,7 @@ def writeClauses(outClauses:list[Clause], filename:str, navTitle:str, addNavTitl ...@@ -511,7 +510,7 @@ def writeClauses(outClauses:list[Clause], filename:str, navTitle:str, addNavTitl
else: else:
file.write(f"{indentation}{' '*f.level}- '{_title}':\n") file.write(f"{indentation}{' '*f.level}- '{_title}':\n")
if len(f) > 0: if len(f) > 0:
file.write(f"{indentation}{' '*nextClause.level}- 'Introduction': '{navTitle}/{f.clauseNumber}.md'\n") file.write(f"{indentation}{' '*nextClause.level}- 'Hanging paragraph': '{navTitle}/{f.clauseNumber}.md'\n")
def copyMediaFiles(filename:str, navTitle:str, mediaDirectory:str = 'media') -> None: def copyMediaFiles(filename:str, navTitle:str, mediaDirectory:str = 'media') -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment