Login  Register

Re: Multiple forced line breaks in one paragraph not possible

Posted by mojavelinux on Jun 12, 2014; 8:56am
URL: https://discuss.asciidoctor.org/Multiple-forced-line-breaks-in-one-paragraph-not-possible-tp1675p1810.html

Carsten,

This works for me (using Asciidoctor 1.5.0.preview.7). Can you put it in a gist.github.com and show that it doesn't work there?

Another way to get consecutive lines with hard endlines is to use the hardbreaks option:

```asciidoc

[%hardbreaks]
3
2
1
Lift off!

```

which converts to the following HTML:

```html

<div class="paragraph">
<p>3<br>
2<br>
1<br>
Lift off!</p>
</div>

```

-Dan



On Thu, Apr 10, 2014 at 10:15 AM, cmj [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I try to add a second forced line break to a paragraph, it does not work. Instead a '+' sign ist drawn.

Example:
----
Hello +
World +
Carsten
----

Expected:
----
Hello
World
Carsten
-----

But I get:
----
Hello
World + Carsten
----

Is this a bug or expected behaviour? Is there a (simple) workaround?

Thanks in advance!
Carsten


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Multiple-forced-line-breaks-in-one-paragraph-not-possible-tp1675.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | http://google.com/profiles/dan.j.allen