rehamaltamimi / gwtwiki

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

image parser eats characters of following text (stops at numbers or whitespace) #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
== ImageEatenCharsTest1 ==
test1[[Image:PeanutButter.jpg]]test2

What is the expected output? What do you see instead?
the "test2" is only shown as "2" - actually, any number or whitespace (I tested 
space, tab) stops the parser and only characters starting from that number are 
shown
expected:
<p>test1<a class="image" 
href="/scalaris-wiki/wiki?title=Image:PeanutButter.jpg"><img 
src="/scalaris-wiki/wiki?get_image=PeanutButter.jpg" width="220">
</a>test2</p>

actual:
<p>test1<a class="image" 
href="/scalaris-wiki/wiki?title=Image:PeanutButter.jpg"><img 
src="/scalaris-wiki/wiki?get_image=PeanutButter.jpg" width="220">
</a>2</p>

What version of the product are you using? On what operating system?
3.0.19-SNAPSHOT

Original issue reported on code.google.com by nico.kru...@googlemail.com on 5 Jul 2012 at 10:04

GoogleCodeExporter commented 8 years ago
This is probably related to parsing "plural forms" of wiki links like this 
example:

Dolphins are [[aquatic mammal]]s that are closely related to [[whale]]s and 
[[porpoise]]s.

http://en.wikipedia.org/wiki/Help:Link#Wikilinks

Original comment by axelclk@gmail.com on 5 Jul 2012 at 4:09

GoogleCodeExporter commented 8 years ago
Commited r5898.

Original comment by axelclk@gmail.com on 5 Jul 2012 at 4:39

GoogleCodeExporter commented 8 years ago
thank you - it seems fixed now

Original comment by nico.kru...@googlemail.com on 6 Jul 2012 at 8:41

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 8 Jul 2012 at 9:44