From ecb0dc0fcb12369091bae65d30760bae0e11a21e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 9 Feb 2024 16:42:15 +1100 Subject: [PATCH] Fix manpage hiding lines beginning with single quotes Escape single quotes, file formats were not displayed. --- doc/manpage/blender.1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/manpage/blender.1.py b/doc/manpage/blender.1.py index e29afd2c58c..dae0cfe502a 100755 --- a/doc/manpage/blender.1.py +++ b/doc/manpage/blender.1.py @@ -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