From b259cc0b9db57d55851bf9a77a22fdac16bccd57 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Fri, 2 Mar 2018 11:50:23 +0100 Subject: [PATCH] Documentation 3.3/fix codeblock reader keep newlines (#4735) * fix dumping permission checks; - don't load collections if we're not allowed to read from them - don't list collections for dump if we're not allowed to read from them * adjust to new user struct code structure * fix codeblock reader - keep newlines We must keep newlines when copying the markdown blocks into the documentation; else it will destroy the structure of documents. fixes #4716 --- Documentation/Scripts/codeBlockReader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/Scripts/codeBlockReader.py b/Documentation/Scripts/codeBlockReader.py index 305c11d3f4..e3fcc75b20 100644 --- a/Documentation/Scripts/codeBlockReader.py +++ b/Documentation/Scripts/codeBlockReader.py @@ -230,6 +230,8 @@ def fetch_comments(dirpath): elif ("@END_EXAMPLE_ARANGOSH_OUTPUT" in _text or \ "@END_EXAMPLE_ARANGOSH_RUN" in _text): shouldIgnoreLine = False + else: + fh.write("\n") fh.close() if __name__ == "__main__":