Fix manpage hiding lines beginning with single quotes

Escape single quotes, file formats were not displayed.
This commit is contained in:
Campbell Barton
2024-02-09 16:42:15 +11:00
parent 2e6223d90f
commit ecb0dc0fcb

View File

@@ -27,6 +27,8 @@ from typing import (
def man_format(data: str) -> str:
data = data.replace("-", "\\-")
data = data.replace("\t", " ")
# Single quotes prevent text rendering when found at the beginning of lines.
data = data.replace("'", "\\(aq")
return data