From 751694058a3387b21e22219939c2cbbd803d1a76 Mon Sep 17 00:00:00 2001 From: Charles Holbrow Date: Wed, 23 Jan 2013 15:15:13 -0500 Subject: [PATCH] Updating import script to handle \\\r case (import escaped javascript string) --- bin/import_json/run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/import_json/run.py b/bin/import_json/run.py index 7bb1e26..fd98853 100644 --- a/bin/import_json/run.py +++ b/bin/import_json/run.py @@ -113,6 +113,7 @@ for note in note_dicts: # fix the weird javascript issue if n.html: n.html = re.sub(r'\\(.)', r'\1', n.html) + n.html = re.sub(r'\\\n', r'', n.html) # Add the tags, if any for t in tags: n.tags.add(t) -- 2.25.1