From 49302d658811c6d883924ef926bcd8f2e21bc931 Mon Sep 17 00:00:00 2001 From: Robert Konigsberg Date: Sat, 25 Feb 2012 15:21:15 -0500 Subject: [PATCH] Support line continuation in JSON format. --- generate-documentation.py | 2 ++ 1 file changed, 2 insertions(+) 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. -- 2.7.4