ignore tables we don't have upon saving as XML: this is indispensible for batch processing
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@237 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
1890b953f0
commit
0ecc433736
@ -42,7 +42,7 @@ Dumping 'prep' table...
|
||||
"""
|
||||
|
||||
#
|
||||
# $Id: __init__.py,v 1.27 2002-05-13 16:21:50 jvr Exp $
|
||||
# $Id: __init__.py,v 1.28 2002-05-15 07:50:06 jvr Exp $
|
||||
#
|
||||
|
||||
import os
|
||||
@ -212,14 +212,19 @@ class TTFont:
|
||||
writer.newline()
|
||||
collection.simpletag(xmlTag, src=os.path.basename(tablePath))
|
||||
collection.newline()
|
||||
table = self[tag]
|
||||
report = "Dumping '%s' table..." % tag
|
||||
if self.has_key(tag):
|
||||
table = self[tag]
|
||||
report = "Dumping '%s' table..." % tag
|
||||
else:
|
||||
report = "No '%s' table found." % tag
|
||||
if progress:
|
||||
progress.setlabel(report)
|
||||
elif self.verbose:
|
||||
debugmsg(report)
|
||||
else:
|
||||
print report
|
||||
if not self.has_key(tag):
|
||||
continue
|
||||
if hasattr(table, "ERROR"):
|
||||
writer.begintag(xmlTag, ERROR="decompilation error")
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user