1
0
Fork 0

better format the text inbewteen examples - use markdown.

This commit is contained in:
Wilfried Goesgens 2016-06-09 17:44:22 +02:00
parent 0f25de4e4f
commit 3433767eb9
1 changed files with 2 additions and 2 deletions

View File

@ -1006,12 +1006,12 @@ def example_arangosh_run(cargo, r=Regexen()):
except:
print >> sys.stderr, "Failed to open example file:\n '%s'" % fn
raise
operation['x-examples'][currentExample]= '<details><summary>Example: ' + exampleHeader.strip('\n ') + '</summary><br><br><pre><code class="json">'
operation['x-examples'][currentExample]= '\n\n#Example:\n ' + exampleHeader.strip('\n ') + '\n\n<pre><code class="json">'
for line in examplefile.readlines():
operation['x-examples'][currentExample] += line
operation['x-examples'][currentExample] += '</code></pre><br></details>\n'
operation['x-examples'][currentExample] += '</code></pre>\n\n\n'
line = ""