json-glib: update to 1.10.6
[oi-userland.git] / components / python / smartypants / patches / 01-escape-sequence.patch
blobcd7a2a286860f579dfdeb397b51e55b3b3e8f5e7
1 https://github.com/leohemsted/smartypants.py/issues/14
2 https://github.com/leohemsted/smartypants.py/pull/13
4 --- smartypants.py-2.0.1/smartypants.py.orig
5 +++ smartypants.py-2.0.1/smartypants.py
6 @@ -268,13 +268,13 @@
7 if do_quotes:
8 if t == "'":
9 # Special case: single-character ' token
10 - if re.match("\S", prev_token_last_char):
11 + if re.match(r"\S", prev_token_last_char):
12 t = "’"
13 else:
14 t = "‘"
15 elif t == '"':
16 # Special case: single-character " token
17 - if re.match("\S", prev_token_last_char):
18 + if re.match(r"\S", prev_token_last_char):
19 t = "”"
20 else:
21 t = "“"