1
0
forked from AFPy/pospell

allow full list of conversion types in printf-style variables

See https://docs.python.org/3/library/stdtypes.html#old-string-formatting
This commit is contained in:
Tobias Bengfort 2019-11-18 09:52:00 +01:00
parent 4fa26a6e56
commit 66fc558933

View File

@ -138,7 +138,7 @@ def clear(po_path, line, drop_capitalized=False):
r"{[a-z_]*?}", # Sphinx variable
r"'?-?\b([0-9]+\.)*[0-9]+\.[0-9abcrx]+\b'?", # Versions
r"[0-9]+h", # Hours
r"%\([a-z_]+?\)s", # Sphinx variable
r"%\([a-z_]+?\)[diouxXeEfFgGcrsa%]", # Sphinx variable
r"« . »", # Single letter examples (typically in Unicode documentation)
"\xad", # soft hyphen
}