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
...@@ -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