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

Including hanging paragraphs and a note to fix them

parent bb5de7bf
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ git checkout $7 ...@@ -39,7 +39,7 @@ git checkout $7
####### GENERATE NAV SPEC ####### ####### GENERATE NAV SPEC #######
echo "------ Generate input for mkdocs --------" echo "------ Generate input for mkdocs --------"
python3 $1 -it --title ${9^^} "./$8.md" python3 $1 -it -ihp --title ${9^^} "./$8.md"
echo "------ Move to docs folder --------" echo "------ Move to docs folder --------"
mv ${9^^}/* docs/ mv ${9^^}/* docs/
sed -i 's/'${9^^}'\///g' _nav.yml sed -i 's/'${9^^}'\///g' _nav.yml
......
...@@ -344,6 +344,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False ...@@ -344,6 +344,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False
print(f'[yellow]Hanging paragraph in clause "{clause.title}" {"(removed)" if not includeHangingParagraphs else "(kept)"}') print(f'[yellow]Hanging paragraph in clause "{clause.title}" {"(removed)" if not includeHangingParagraphs else "(kept)"}')
if not includeHangingParagraphs: if not includeHangingParagraphs:
clauses[i].lines = [] 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
# 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