From 095233e6cf67920fafa5f8cf2afdc44fde210fce Mon Sep 17 00:00:00 2001 From: Marc Faber Date: Fri, 27 Sep 2019 01:05:25 +0200 Subject: [PATCH] Flowchart parsing issue with CRLF #894 --- dist/index.html | 13 +++++++++++++ src/diagrams/flowchart/parser/flow.jison | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dist/index.html b/dist/index.html index f94119e13..027b17213 100644 --- a/dist/index.html +++ b/dist/index.html @@ -439,5 +439,18 @@ Class08 <--> C2: Cool label }, 100) } + diff --git a/src/diagrams/flowchart/parser/flow.jison b/src/diagrams/flowchart/parser/flow.jison index 91a9b044b..bdc8d2869 100644 --- a/src/diagrams/flowchart/parser/flow.jison +++ b/src/diagrams/flowchart/parser/flow.jison @@ -169,7 +169,7 @@ "{" return 'DIAMOND_START' "}" return 'DIAMOND_STOP' "\"" return 'QUOTE'; -\n+ return 'NEWLINE'; +(\r|\n|\r\n)+ return 'NEWLINE'; \s return 'SPACE'; <> return 'EOF';