10000 Documentation 3.3/fix codeblock reader keep newlines (#4735) · Sandychuang/arangodb@b259cc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b259cc0

Browse files
dothebartjsteemann
authored andcommitted
Documentation 3.3/fix codeblock reader keep newlines (arangodb#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 arangodb#4716
1 parent 7cc78dc commit b259cc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/Scripts/codeBlockReader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ def fetch_comments(dirpath):
230230
elif ("@END_EXAMPLE_ARANGOSH_OUTPUT" in _text or \
231231
"@END_EXAMPLE_ARANGOSH_RUN" in _text):
232232
shouldIgnoreLine = False
233+
else:
234+
fh.write("\n")
233235
fh.close()
234236

235237
if __name__ == "__main__":

0 commit comments

Comments
 (0)
0