[outtmpl] Alternate form of format type l for \n delimited list
This commit is contained in:
parent
d31dab7084
commit
91dd88b90f
4 changed files with 7 additions and 3 deletions
|
|
@ -2099,7 +2099,9 @@ def sanitize_filename(s, restricted=False, is_id=False):
|
|||
def replace_insane(char):
|
||||
if restricted and char in ACCENT_CHARS:
|
||||
return ACCENT_CHARS[char]
|
||||
if char == '?' or ord(char) < 32 or ord(char) == 127:
|
||||
elif not restricted and char == '\n':
|
||||
return ' '
|
||||
elif char == '?' or ord(char) < 32 or ord(char) == 127:
|
||||
return ''
|
||||
elif char == '"':
|
||||
return '' if restricted else '\''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue