fix(builder): Remove surrounding quotes for raw strings

Ref #221
This commit is contained in:
Michael Carlberg 2016-12-05 04:15:20 +01:00
parent 7f5117b7cc
commit d561b9cb2d
1 changed files with 4 additions and 0 deletions

View File

@ -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;