StringTree: Respect quoted quotes

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-11-22 09:34:26 +01:00
commit 3d93d534db
3 changed files with 17 additions and 11 deletions

View file

@ -54,7 +54,7 @@ def parse(s): # export
if rhs is None:
raise Exception("failed to parse assignment", line)
root.add(sec + '.' + cleanup_string(lhs), quote(cleanup_string(rhs)))
root.add(sec + '.' + cleanup_string(lhs), cleanup_string(rhs))
return root
def read(path): # export