diff --git a/padpo/pofile.py b/padpo/pofile.py index 360848f..2a03535 100644 --- a/padpo/pofile.py +++ b/padpo/pofile.py @@ -88,6 +88,9 @@ class PoItem: text = re.sub( r"\*(.*?)\*", r"« \1 »", text ) # TODO sauf si déjà entre «» + text = re.sub( + r"`(.*?)\s*<((?:http|https|ftp)://.*?)>`_", r"\1 (« \2 »)", text + ) text = re.sub(r"<((?:http|https|ftp)://.*?)>", r"« \1 »", text) return text