From 2a70def89c5d342b8b4a6d19ef162f52c47c48e4 Mon Sep 17 00:00:00 2001 From: Martin Utz <martin.utz@baw.de> Date: Fri, 3 Apr 2020 15:40:17 +0200 Subject: [PATCH] [examples] Fix generate_example_docs.py to avoid trailing whitespaces --- examples/1ptracer/README.md | 4 ++-- examples/generate_example_docs.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/1ptracer/README.md b/examples/1ptracer/README.md index 0ebe64e72a..6564359644 100644 --- a/examples/1ptracer/README.md +++ b/examples/1ptracer/README.md @@ -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) | |---:| - + ## Part 2: Tracer transport simulation setup | [:arrow_right: Click to continue with part 2 of the documentation](doc/tracermodel.md) | |---:| - + ## Part 3: Main program flow | [:arrow_right: Click to continue with part 3 of the documentation](doc/main.md) | diff --git a/examples/generate_example_docs.py b/examples/generate_example_docs.py index fa9f1704ae..22b874fe1b 100755 --- a/examples/generate_example_docs.py +++ b/examples/generate_example_docs.py @@ -34,7 +34,7 @@ class Navigation: self.snippets[mainpage] = { "header" : "", "footer" : "" } 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) - 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))] ).rstrip("\n") -- GitLab