Merge pull request #3096 from timmaffett/fix_ttx_urlencode_filenames
fix ttx split tables option to work on filenames containing '%' fixes #3095
This commit is contained in:
commit
f026853cb2
@ -323,12 +323,11 @@ class TTFont(object):
|
|||||||
writer.newline()
|
writer.newline()
|
||||||
else:
|
else:
|
||||||
path, ext = os.path.splitext(writer.filename)
|
path, ext = os.path.splitext(writer.filename)
|
||||||
fileNameTemplate = path + ".%s" + ext
|
|
||||||
|
|
||||||
for i in range(numTables):
|
for i in range(numTables):
|
||||||
tag = tables[i]
|
tag = tables[i]
|
||||||
if splitTables:
|
if splitTables:
|
||||||
tablePath = fileNameTemplate % tagToIdentifier(tag)
|
tablePath = path + "." + tagToIdentifier(tag) + ext
|
||||||
tableWriter = xmlWriter.XMLWriter(
|
tableWriter = xmlWriter.XMLWriter(
|
||||||
tablePath, newlinestr=writer.newlinestr
|
tablePath, newlinestr=writer.newlinestr
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user