Skip to content
Snippets Groups Projects
Commit c90c14c1 authored by Andreas Kraft's avatar Andreas Kraft
Browse files

Beautified output. Now mentioning skipped clauses

parent f63e596e
No related branches found
No related tags found
No related merge requests found
...@@ -164,10 +164,8 @@ def writeClauses(outLines:list[Clause], filename:str, navTitle:str) -> None: ...@@ -164,10 +164,8 @@ def writeClauses(outLines:list[Clause], filename:str, navTitle:str) -> None:
# create directory first # create directory first
os.makedirs(f'{os.path.dirname(filename)}/{navTitle}', exist_ok = True) os.makedirs(f'{os.path.dirname(filename)}/{navTitle}', exist_ok = True)
for i, f in enumerate(outLines): for i, f in enumerate(outLines):
if len(f.lines) == 0: # ignore empty clauses if len(f.lines) == 0 or f.onlyNav: # ignore empty clauses or clauses that are only for navigation
continue print(f'[green]Navigation only - "{f.title}"')
# Don't write content files that are only for navigation
if f.onlyNav:
continue continue
# write to single files # write to single files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment