Description
In lists with links inside an additional line break <p> is printed directly after the <li> in the source code. In context with a Wiki-tag the <p> is printed after the the tag. This leads to a misplacement of the text.
Update: see Discussion below.
Steps to reproduce
See example below. The Code is:
* [[GetText(text)]] - this is wrong http://www.link.com * some [[GetText(text)]] - this is correct http://www.link.com * [[GetText(text)]] - another text without link * link without tag http://www.link.com
Example
text - this is wrong http://www.link.com
some text - this is correct http://www.link.com
text - another text without link
link without tag http://www.link.com
As you see there is a break in the first line. If you take a look at the source-code you will see something like:
<ul> <li>text<p> - this is wrong <a href="http://www.link.com">http://www.link.com</a></li> <li><p> some text - this is correct <a href="http://www.link.com">http://www.link.com</a></li> <li>text - another text without link</li> <li><p> link without tag <a href="http://www.link.com">http://www.link.com</a></li> </ul> <ul>
Component selection
- general
Details
This Wiki.
Workaround
Just write a imaginary typewrite-text before the tag:
* {{{
GetText(text) - this is correct now http://www.link.com}}}
Result is:
text - this is correct now http://www.link.com
Discussion
The problem is a little bit more complicated than I thought. The code
* [[GetText(Dee)]]: I am Dee * [[GetText(Dee)]]: I am '''Dee''' * [[GetText(Dee)]]: I am ''Dee'' * [[GetText(Dee)]]: I am `Dee` * [[GetText(Dee)]]: I am [[GetText(Dee)]] * [[GetText(Dee)]]: I am {{{Dee
}}}
also results in a wrong breaks:
Dee: I am Dee
Dee: I am Dee
Dee: I am Dee
Dee: I am Dee
Dee: I am Dee
Dee: I am Dee
So it's not just a hyperlink that produces this error but also other tags and fomatting styles.
Plan
- Priority:
- Assigned to:
Status: Bug doesn't appear here any more, no version information, closing. -- JohannesBerg 2008-03-18 19:44:14