tel8618217223380 / gwtwiki

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

thumb-images should also stop pre-tags #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
== Peanut Butter (variant 1) ==
 [[Image:PeanutButter.jpg|thumb|"Smooth" peanut butter in a jar]]

'''Peanut butter''' is a food paste made primarily from ...
=====
== Peanut Butter (variant 2) ==
 test0
 [[Image:PeanutButter.jpg|thumb|"Smooth" peanut butter in a jar]]
 test2

'''Peanut butter''' is a food paste made primarily from ...
=====
== Peanut Butter (variant 3) ==
 test0
 test[[Image:PeanutButter.jpg|thumb|"Smooth" peanut butter in a jar]]
 test2

'''Peanut butter''' is a food paste made primarily from ...
=====

What is the expected output? What do you see instead?
- Peanut Butter (variant 1): should not show a pre-environment as it is empty 
(since the thumb-image is shown outside of the pre, it apparently is not 
counted as being content of it)
- Peanut Butter (variant 2): in MediaWiki, this produces two pre-environments 
with the image in between (it stops the pre-attribute of this line - outside 
pre, bliki already does that, e.g. if you render 
"1test1[[Image:PeanutButter.jpg|thumb|"Smooth" peanut butter in a jar]]2test2")
- Peanut Butter (variant 3) shows that the pre-attribute of the whole line is 
discarded (in MediaWiki) due to the thumb-image

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:12

GoogleCodeExporter commented 9 years ago
Commited r6028.

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

GoogleCodeExporter commented 9 years ago
looks good, only one minor issue: variant 2 shows an extra newline in the first 
<pre> (test0) compared to MediaWiki

Original comment by nico.kru...@googlemail.com on 9 Jul 2012 at 9:19

GoogleCodeExporter commented 9 years ago

Original comment by axelclk@gmail.com on 8 Aug 2012 at 1:00

GoogleCodeExporter commented 9 years ago
I don't know whether a new issue should be opened for my last comment, but it 
is still valid in 3.0.19 (final): variant 2 shows an extra newline in the first 
<pre> (test0) compared to MediaWiki

Original comment by nico.kru...@googlemail.com on 9 Aug 2012 at 4:03

GoogleCodeExporter commented 9 years ago
I reopened the issue

Original comment by axelclk@gmail.com on 9 Aug 2012 at 4:16