Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blank lines in list in Redmine

This seems so stupidly simple, but I can't figure it out. I'd like to make a list like this in my Redmine project wiki:

  1. Really complicated item

    Line 3

  2. Next complicated item

Basically, I want to have blank lines in my list without restarting numbering. How do I do this? It seems so basic; I can't believe they haven't thought of this - I must be missing something obvious.

like image 304
James Johnston Avatar asked Mar 13 '12 21:03

James Johnston


2 Answers

I finally figured out a good way to do this using non-breaking spaces:

# Really complicated item
  
 Line 3
  
# Next complicated item

Seems that I found a part of HTML that isn't banned by Redmine... If that changes, you can still work around it using marapet's solution, but for the item after Line 3 you have to copy/paste a non-breaking space (a different character from normal space) instead of just pressing spacebar between the "@ @" symbols.

like image 124
James Johnston Avatar answered Oct 24 '22 00:10

James Johnston


Redmine produces this html:

<ol>
<li>Really complicated item

    <p>Line 3</p>
    </li>
    <li>Next complicated item</li>
</ol>

By adding @ @ as the second (empty) line :

# Really complicated item
 @ @
 Line 3
# Next complicated item

the html generated is:

<ol>
    <li>Really complicated item
<br/>
 <code> </code><br/> Line 3</li>
    <li>Next complicated item</li>
</ol>

which should display as you'd like (at least with the default theme), but semantically it's of course non-sense.

like image 43
marapet Avatar answered Oct 24 '22 01:10

marapet