mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 20:33:44 +08:00
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:
parent
85267199c7
commit
5354fe1119
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user