Double quotes in ODT comments cause exception in Renderer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Appy |
New
|
Undecided
|
Unassigned |
Bug Description
To reproduce:
- create an ODT document with some paragraphs
- select one of them and add a comment, saying: do text if mydict["mybool"]
- in Python, pass this to the renderer as the context variable: {"mydict" : {"mybool":True}}
The expected behaviour is to see the paragraph printed in the output.
Instead, the Renderer crashes with the log output similar to this:
Traceback (most recent call last):
File "C:\<irrelevant
renderer.run()
File "C:\Python27\
self.
File "C:\Python27\
arse
self.
File "C:\Python27\
xmlreader.
File "C:\Python27\
self.
File "C:\Python27\
self.
File "C:\Python27\
self.
File "C:\Python27\
lement
e.context)
File "C:\Python27\
self.do(result, context, eRes)
File "C:\Python27\
self.
File "C:\Python27\
eBuffer
self.
File "C:\Python27\
e
evalEntry.
File "C:\Python27\
eRes,error = self.evaluateEx
File "C:\Python27\
Expression
errorMessage = EVAL_ERROR % (expr, self.getExcepti
File "C:\Python27\
tionLine
return '%s.%s: %s' % (e.__module__, e.__class_
AttributeError: 'exceptions.
Oh, forgot to add, that the error disappears if the ODT comment is rewritten to read like this: do text if mydict['mybool']