Multiple forced line breaks in one paragraph not possible

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
cmj
Reply | Threaded
Open this post in threaded view
|

Multiple forced line breaks in one paragraph not possible

cmj
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
Reply | Threaded
Open this post in threaded view
|

Re: Multiple forced line breaks in one paragraph not possible

LightGuardjp
I have to say I don't know of a workaround, perhaps others do?


On Thu, Apr 10, 2014 at 9: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



--
Reply | Threaded
Open this post in threaded view
|

Re: Multiple forced line breaks in one paragraph not possible

mojavelinux
Administrator
In reply to this post by cmj
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



--
Jmm
Reply | Threaded
Open this post in threaded view
|

Re: Multiple forced line breaks in one paragraph not possible

Jmm

Hello

Is the hardbreaks option specific to 1.5 ?  I don't seem able to make it work with the docbook output.

Jmm

Not sent from my PC

Le 12 juin 2014 11:01, "mojavelinux [via Asciidoctor :: Discussion]" <[hidden email]> a écrit :
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



--



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-tp1675p1810.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Multiple forced line breaks in one paragraph not possible

mojavelinux
Administrator
Jmm,

Yes, that option was added sometime in the 1.5.0 development cycle.

-Dan


On Thu, Jun 12, 2014 at 6:54 AM, Jmm [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Hello

Is the hardbreaks option specific to 1.5 ?  I don't seem able to make it work with the docbook output.

Jmm

Not sent from my PC

Le 12 juin 2014 11:01, "mojavelinux [via Asciidoctor :: Discussion]" <[hidden email]> a écrit :
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

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-tp1675p1810.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



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-tp1675p1811.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--