From 66fc55893336d0c0a0f981f63d5ca1dbfb73defb Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Mon, 18 Nov 2019 09:52:00 +0100 Subject: [PATCH] allow full list of conversion types in printf-style variables See https://docs.python.org/3/library/stdtypes.html#old-string-formatting --- pospell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pospell.py b/pospell.py index 1673b16..4867238 100644 --- a/pospell.py +++ b/pospell.py @@ -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 }