Show More
@@ -169,7 +169,7 b' def _parsetemplate(tmpl, start, stop, qu' | |||||
169 | parsed.append(('string', parser.unescapestr(tmpl[pos:stop]))) |
|
169 | parsed.append(('string', parser.unescapestr(tmpl[pos:stop]))) | |
170 | pos = stop |
|
170 | pos = stop | |
171 | break |
|
171 | break | |
172 | c = tmpl[n] |
|
172 | c = tmpl[n:n + 1] | |
173 | bs = (n - pos) - len(tmpl[pos:n].rstrip('\\')) |
|
173 | bs = (n - pos) - len(tmpl[pos:n].rstrip('\\')) | |
174 | if bs % 2 == 1: |
|
174 | if bs % 2 == 1: | |
175 | # escaped (e.g. '\{', '\\\{', but not '\\{') |
|
175 | # escaped (e.g. '\{', '\\\{', but not '\\{') |
General Comments 0
You need to be logged in to leave comments.
Login now