stm2 / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

carriage-return in template parameters is not removed #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
see attached patch for a unit test

What is the expected output? What do you see instead?
\r should be parsed away like \n

Please use labels and text to provide additional information.

Original issue reported on code.google.com by nico.kru...@googlemail.com on 26 Oct 2012 at 4:52

Attachments:

GoogleCodeExporter commented 8 years ago
additional notes: the content of show is parsed as "1\r" and in the next step, 
the code tries to look up "jan1\r" which does not exist (only "jan1" does)

Original comment by nico.kru...@googlemail.com on 26 Oct 2012 at 4:54

GoogleCodeExporter commented 8 years ago
probably all variants of "newline" should be seen as such: "\n", "\n\r" and 
"\r\n"

Original comment by nico.kru...@googlemail.com on 26 Oct 2012 at 5:01

GoogleCodeExporter commented 8 years ago
Committed r7651

Original comment by axelclk@gmail.com on 26 Oct 2012 at 10:29

GoogleCodeExporter commented 8 years ago
thanks, seems fixed now

Original comment by nico.kru...@googlemail.com on 2 Nov 2012 at 10:59