1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-03 04:33:30 -05:00

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

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;