appy.bin: job.py: allow to specify several commands to execute (to separate with semicolons); appy.gen: translate: added the possibility to escape XML special chars in translations; appy.pod: bugfix in buffers.write: if content is already utf-8-encoded it does not crash anymore.
This commit is contained in:
parent
344229e3a9
commit
e38b78d10c
4 changed files with 29 additions and 14 deletions
|
@ -177,7 +177,10 @@ class FileBuffer(Buffer):
|
|||
def getLength(self): return 0
|
||||
|
||||
def write(self, something):
|
||||
self.content.write(something.encode('utf-8'))
|
||||
try:
|
||||
self.content.write(something.encode('utf-8'))
|
||||
except UnicodeDecodeError:
|
||||
self.content.write(something)
|
||||
|
||||
def addExpression(self, expression):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue