Commit 2a70def8 authored by Martin Utz's avatar Martin Utz Committed by Timo Koch
Browse files

[examples] Fix generate_example_docs.py to avoid trailing whitespaces

parent 140a7b7c
...@@ -120,13 +120,13 @@ simulations are solved sequentially in the main file (`main.cc`). ...@@ -120,13 +120,13 @@ simulations are solved sequentially in the main file (`main.cc`).
| [:arrow_right: Click to continue with part 1 of the documentation](doc/1pmodel.md) | | [:arrow_right: Click to continue with part 1 of the documentation](doc/1pmodel.md) |
|---:| |---:|
## Part 2: Tracer transport simulation setup ## Part 2: Tracer transport simulation setup
| [:arrow_right: Click to continue with part 2 of the documentation](doc/tracermodel.md) | | [:arrow_right: Click to continue with part 2 of the documentation](doc/tracermodel.md) |
|---:| |---:|
## Part 3: Main program flow ## Part 3: Main program flow
| [:arrow_right: Click to continue with part 3 of the documentation](doc/main.md) | | [:arrow_right: Click to continue with part 3 of the documentation](doc/main.md) |
......
...@@ -34,7 +34,7 @@ class Navigation: ...@@ -34,7 +34,7 @@ class Navigation:
self.snippets[mainpage] = { "header" : "", "footer" : "" } self.snippets[mainpage] = { "header" : "", "footer" : "" }
makeHead = lambda t: "\n## {}\n\n".format(t) makeHead = lambda t: "\n## {}\n\n".format(t)
makeEntry = lambda i,l: "| [:arrow_right: Click to continue with part {} of the documentation]({}) |\n|---:|\n\n".format(i,l) makeEntry = lambda i,l: "| [:arrow_right: Click to continue with part {} of the documentation]({}) |\n|---:|\n\n".format(i,l)
self.snippets[mainpage]["footer"] = " ".join( self.snippets[mainpage]["footer"] = "".join(
[ makeHead(title) + makeEntry(index+1, self.getRelPath(mainpage, subpage)) for index, (subpage, title) in enumerate(zip(subpages, subtitles))] [ makeHead(title) + makeEntry(index+1, self.getRelPath(mainpage, subpage)) for index, (subpage, title) in enumerate(zip(subpages, subtitles))]
).rstrip("\n") ).rstrip("\n")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment