From: Robert Konigsberg Date: Sat, 25 Feb 2012 20:21:15 +0000 (-0500) Subject: Support line continuation in JSON format. X-Git-Tag: v1.0.0~322 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=49302d658811c6d883924ef926bcd8f2e21bc931;p=dygraphs.git Support line continuation in JSON format. --- diff --git a/generate-documentation.py b/generate-documentation.py index 0614bef..613dec7 100755 --- a/generate-documentation.py +++ b/generate-documentation.py @@ -21,6 +21,8 @@ for line in file('dygraph-options-reference.js'): elif '' 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.