Opened 10 years ago

#3182 new defect

Ampersand '&' in links causes a converting error

Reported by: anonymous Owned by: Christophe de Vienne
Priority: normal Component: PageToOdtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


When converting a page to opendocument I get this error.

Trac detected an internal error:

If you think this really should work and you can reproduce it, you should consider reporting this problem to the Trac team.

Go to and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the Python traceback found below.

TracGuide — The Trac User and Administration Guide
Python Traceback

Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/", line 406, in dispatch_request
  File "/var/lib/python-support/python2.5/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/var/lib/python-support/python2.5/trac/wiki/", line 134, in process_request
    page.text, format,
  File "/var/lib/python-support/python2.5/trac/mimeview/", line 605, in send_converted
    content, selector)
  File "/var/lib/python-support/python2.5/trac/mimeview/", line 385, in convert_content
    output = converter.convert_content(req, mimetype, content, ck)
  File "build/bdist.linux-x86_64/egg/pagetoodt/", line 43, in convert_content
    req, source, )
  File "build/bdist.linux-x86_64/egg/pagetoodt/", line 93, in wiki_to_odtcontent
    wiki_to_odt(source, self.env, req, self.styles))
  File "<string>", line 85, in XML
SyntaxError: not well-formed (invalid token): line 70, column 157

I found it happens because of this link:

When removing the ampersand it works again (but it becames a broken link) :-(

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Christophe de Vienne.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.