Commit b06dd496 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/generate_example_docs-trailing-whitespaces' into 'master'

[examples] Fix generate_example_docs.py to avoid trailing whitespaces

See merge request !1946
parents 140a7b7c 2a70def8
......@@ -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")
......
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