Description

If any line within a codeblock using a parser contains  \" , the parsed result will be an extra line containing a dollar sign  $ .

Steps to reproduce

  1. Create a new page.
  2. Edit this to contain something like this:

{{{#!java
testvar = "\\" + servername + "\"
}}}
  1. The result will be something like this:

   1 testvar = "\\" + servername + "\"

Example

A much more realistic example would be where I originally got the problem. I am using the visualbasic parser and got the example shown in this link:

URL: http://wiki.rollespill.no/code/moin.cgi/ParserBaseHandlingOfBackslashQuotationmarkExample

Look at line 43 in the codeblock.

Component selection

Details

This wiki.

Workaround

I can see no real good workarounds.

Discussion

I don't see a $ sign in your example above. Please note that with 1.9 we use for syntax highlighting a new highlight parser based on pygments.

   1 testvar = "\\" + servername + "\"

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/ParserBaseHandlingOfBackslashQuotationmark (last edited 2009-11-28 10:04:40 by ThomasWaldmann)