2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-13 12:43:43 +00:00

Replace more escapes with quotes in man parser ()

* Replace \(aq with "'" in man parser

* Also replace oq, dq, lq, and rq

(cherry picked from commit 0f19d7118b)
This commit is contained in:
ysthakur 2023-08-19 11:10:22 -04:00 committed by Fabian Boehm
parent 85267199c7
commit 5354fe1119

View file

@ -260,7 +260,12 @@ def remove_groff_formatting(data):
data = data.replace(r"\-", "-")
data = data.replace(".I", "")
data = data.replace("\f", "")
data = data.replace(r"\(oq", "'")
data = data.replace(r"\(cq", "'")
data = data.replace(r"\(aq", "'")
data = data.replace(r"\(dq", '"')
data = data.replace(r"\(lq", '"')
data = data.replace(r"\(rq", '"')
return data