Replace more escapes with quotes in man parser (#9961)

* 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