replace double quote with - for valid xml id
This commit is contained in:
parent
24160a7990
commit
69c97349db
@ -234,7 +234,7 @@ def valid_filename(filename):
|
||||
"""
|
||||
valid_filename = ''
|
||||
for char in filename.strip():
|
||||
if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'']:
|
||||
if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'', '"']:
|
||||
if len(char) and not valid_filename.endswith('-'):
|
||||
valid_filename += '-'
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user