Description

Fixed in 1.7

The HTML entity reference for right arrow doesn't get transformed correctly into DocBook. An arrow like this →, when rendered as DocBook and saved to a file will produce the output like → wheras it should be →.

Steps to reproduce

  1. Add a right arrow (→) using the → entity reference to a wiki page.

  2. Export as DocBook.

  3. Save the DocBook to a file.

  4. View the DocBook file and you should see →.

Example

Just try exporting this page as DocBook.

Details

MoinMoin Version

1.53

OS and Version

FreeBSD 4.11-RELEASE-p11

Python Version

2.4.1

Server Setup

?

Server Details

?

Language you are using the wiki in (set in the browser/UserPreferences)

English

Workaround

A script to subsititute & for &

Discussion

Plan

Wow, this was a tricky one. An entity like → causes the parser to call the formatters raw_html method. I decided to take the following route: If the markup passed to raw_html contains no < or > characters, we'll try to append it as plain text. This is however a problem, since entities need special handling. My solution was to replace all entities with their relevant unicode char. It works. Fix should be in the docbook branch in a couple of days.


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/DocBookExportArrowsIncorrect (last edited 2008-03-13 10:04:16 by MikkoVirkkilä)