Modify ↓
Opened 18 years ago
Closed 18 years ago
#3631 closed defect (worksforme)
embedding an image in a (unordered) list item after a linebreak creates a new paragraph
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | wiki system | Version: | 0.9.6 |
Severity: | trivial | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I wanted an image inside a list item. The Image should be indented and be arranged like the text.
With the Code
* This is my item.[[BR]] [[Image(source:/trunk/filename.jpg)]]
I'll get the html-code
<ul><li>This is my item.<br /> </li></ul><p> <a href="/svn/trac/filename.jpg" style="padding:0; border:none"><img src="/svn/trac/filename.jpg"/></a> </p>
So an extra paragraph-tag for the image is generated.
If I use the following code (Text, BR and Image in one line) it works as it should.
* This is my item.[[BR]][[Image(source:/trunk/filename.jpg)]]
It also works when I indent the Image-Code (brackets) so that it fits to the list-item text:
* This is my item.[[BR]] [[Image(source:/trunk/filename.jpg)]]
I think it would be interesting to keep the usual paragraph style consistent for the whole wiki.
Attachments (0)
Note:
See TracTickets
for help on using tickets.
The rule is that whenever you "dedent", i.e. start a line on a column which is at the left of the current indentation level, you loose an indentation level, eventually going out of list mode if you were at the first level.
… and it's exactly what happens here, the fact that you use a macro is not relevant, same will happen for plain text:
More text.
More text.
More text.