mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix manpage hiding lines beginning with single quotes
Escape single quotes, file formats were not displayed.
This commit is contained in:
parent
2e6223d90f
commit
ecb0dc0fcb
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue