improve link management
This commit is contained in:
parent
1644f68a7a
commit
053b5c5112
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user