Modify ↓
Opened 15 years ago
Closed 15 years ago
#6404 closed defect (fixed)
XMLSyntaxError: Attribute width redefined, line 28, column 48
Reported by: | Owned by: | Aurélien Bompard | |
---|---|---|---|
Priority: | normal | Component: | OdtExportPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I export page to Odt and got error. Page had a macros
[[Image(photo.jpg, 640px)]]
If macros
[[Image(photo.jpg)]]
then export is OK!
How to Reproduce
While doing a GET operation on /wiki/TestPage1
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'format': u'odt', 'page': u'TestPage1'}
User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091216 Mandriva Linux/1.9.1.6-0.1mdv2010.0 (2010.0) Firefox/3.5.6
System Information
Trac | 0.11.5
|
Python | 2.6.4 (r264:75706, Oct 27 2009, 15:51:44) [GCC 4.4.1]
|
setuptools | 0.6c9
|
SQLite | 3.6.18
|
pysqlite | 2.5.5
|
Genshi | 0.5.1
|
mod_python | 3.3.1
|
Pygments | 1.1
|
Subversion | 1.6.6 (r40053)
|
jQuery: | 1.2.6
|
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 444, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 205, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.6/site-packages/trac/wiki/web_ui.py", line 165, in process_request format, versioned_page.name) File "/usr/lib/python2.6/site-packages/trac/mimeview/api.py", line 924, in send_converted content, selector) File "/usr/lib/python2.6/site-packages/trac/mimeview/api.py", line 650, in convert_content output = converter.convert_content(req, mimetype, content, ck) File "build/bdist.linux-i686/egg/odtexport/odtexport.py", line 73, in convert_content odtfile.import_xhtml(html) File "build/bdist.linux-i686/egg/odtexport/odtexport.py", line 171, in import_xhtml odt = self.xhtml_to_odt(xhtml) File "build/bdist.linux-i686/egg/odtexport/odtexport.py", line 182, in xhtml_to_odt xhtml = etree.fromstring(xhtml) # must be valid xml File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266) File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653) File "parser.pxi", line 1415, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70514) File "parser.pxi", line 938, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:67438) File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820) File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741) File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64084) XMLSyntaxError: Attribute width redefined, line 28, column 48
Attachments (0)
Change History (3)
comment:1 Changed 15 years ago by
Status: | new → assigned |
---|
comment:3 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Right, I did not test that properly, thanks for reporting the bug. It should be fixed in r7359, please test.