projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4270a28
)
Support line continuation in JSON format.
author
Robert Konigsberg
<konigsberg@google.com>
Sat, 25 Feb 2012 20:21:15 +0000
(15:21 -0500)
committer
Robert Konigsberg
<konigsberg@google.com>
Sat, 25 Feb 2012 20:21:15 +0000
(15:21 -0500)
generate-documentation.py
patch
|
blob
|
blame
|
history
diff --git
a/generate-documentation.py
b/generate-documentation.py
index
0614bef
..
613dec7
100755
(executable)
--- a/
generate-documentation.py
+++ b/
generate-documentation.py
@@
-21,6
+21,8
@@
for line in file('dygraph-options-reference.js'):
elif '</JSON>' in line:
in_json = False
elif in_json:
+ if line.endswith("\\\n"): # hacked in line continuation support with trailing \.
+ line = line[:-2]
js += line
# TODO(danvk): better errors here.