appy.pod: bugfix while generating tracebacks within odt results (unicode-related); appy.shared.diff: first draft of a full-functional version; appy.shared.utils: improved functions normalizeString and formatNumber.
This commit is contained in:
parent
8e1760842e
commit
2ec05939fe
3 changed files with 137 additions and 124 deletions
|
@ -45,7 +45,10 @@ class PodError(Exception):
|
|||
i += 1
|
||||
if i > linesToRemove:
|
||||
buffer.write('<%s:p>' % textNs)
|
||||
buffer.dumpContent(tLine)
|
||||
try:
|
||||
buffer.dumpContent(tLine)
|
||||
except UnicodeDecodeError, ude:
|
||||
buffer.dumpContent(tLine.decode('utf-8'))
|
||||
buffer.write('</%s:p>' % textNs)
|
||||
dumpTraceback = staticmethod(dumpTraceback)
|
||||
def dump(buffer, message, withinElement=None, removeFirstLine=False, dumpTb=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue