Edgewall Software
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: lnx@… 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)

Change History (1)

comment:1 by Christian Boos, 18 years ago

Resolution: worksforme
Status: newclosed

I think it would be interesting to keep the usual paragraph style consistent for the whole wiki.

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:

 * This is my item. [[BR]] More text.

 * This is my item. [[br]]
   More text.

 * This is my item.
More text.

  • This is my item.
    More text.
  • This is my item.
    More text.
  • This is my item.

More text.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.