Menu

#2 character replacement not working correctly + my patch!

open
nobody
Parser (1)
9
2011-10-10
2011-10-10
notKlaatu
No

The special characters <, >, & need to be converted from ascii to html numbers like &#60; and so on.

Currently this does not work correctly in the script. I have corrected those that do not work, and added support for / and "

Attached is the patch. Apply it with:
patch --dry-run -p1 txt2docbook.pl < txt2docbook.patch

Discussion

  • notKlaatu

    notKlaatu - 2011-10-10

    patch to fix character replacement

     
  • notKlaatu

    notKlaatu - 2011-10-10

    upping the priority since the script really does not function in many cases without this patch.

     
  • notKlaatu

    notKlaatu - 2011-10-10
    • priority: 5 --> 9
     
  • notKlaatu

    notKlaatu - 2011-10-10

    Sorry that obviously should be:
    patch -p1 txt2docbook.pl < txt2docbook.patch

    That is, without the --dry-run flag :)

     

Log in to post a comment.

MongoDB Logo MongoDB