From d561b9cb2d30a4659346a707f66b3272d5f5865e Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 5 Dec 2016 04:15:20 +0100 Subject: [PATCH] fix(builder): Remove surrounding quotes for raw strings Ref #221 --- src/components/builder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/builder.cpp b/src/components/builder.cpp index 36e708d3..7bcc81d6 100644 --- a/src/components/builder.cpp +++ b/src/components/builder.cpp @@ -67,6 +67,10 @@ void builder::node(string str, bool add_space) { string::size_type n, m; string s(move(str)); + if ((n = s.size()) > 2 && s[0] == '"' && s[n - 1] == '"') { + s = s.substr(1, n - 2); + } + while (true) { if (s.empty()) { break;