line break (new line) new syntax suggestion

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

line break (new line) new syntax suggestion

victor
Hi,

for line break (new line) command, one currently has to put `+` at the end of the current line.
Suggestion: why don't we use `\n`, as this is known in computer world as new line marker, while `+` confuses others who read the asciidoc source , mistaking with mathematical addition.

Victor
Reply | Threaded
Open this post in threaded view
|

Re: line break (new line) new syntax suggestion

LightGuardjp
Are you talking about paragraph separation? The `+` continues the current block or section. You see it used in lists frequently to continue the list, but with another block within the list:

  * Item one
  +
  ```
  Some code that will be part of the list
  ```
  * Item two

To separate a paragraph all you need is a blank line. If I'm not understanding please give me your concrete example. 

On Saturday, April 25, 2015, victor [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

for line break (new line) command, one currently has to put `+` at the end of the current line.
Suggestion: why don't we use `\n`, as this is known in computer world as new line marker, while `+` confuses others who read the asciidoc source , mistaking with mathematical addition.

Victor


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/line-break-new-line-new-syntax-suggestion-tp3036.html
To start a new topic under Asciidoctor :: Discussion, email <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;ml-node%2Bs49171n1h37@n6.nabble.com&#39;);" target="_blank">ml-node+s49171n1h37@...
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--

Reply | Threaded
Open this post in threaded view
|

Re: line break (new line) new syntax suggestion

victor
No, I am talking about breaking the line so that, for example, to be able
to write the following poem:
"Roses are red,
Violets are blue"
For that, after "Roses are red ", in asciidoc one needs to put a `+`
currently (or put `hardbreak` attribute).
Reply | Threaded
Open this post in threaded view
|

Re: line break (new line) new syntax suggestion

mojavelinux
Administrator
Victor,

You certainly have a good point. I think this is something that should be considered for the formal grammar (aka UniDoc). Could you file an issue in the following repository where we will consider / discuss changes to the syntax?


Thanks!

-Dan

On Sat, Apr 25, 2015 at 5:17 PM, victor [via Asciidoctor :: Discussion] <[hidden email]> wrote:
No, I am talking about breaking the line so that, for example, to be able
to write the following poem:
"Roses are red,
Violets are blue"
For that, after "Roses are red ", in asciidoc one needs to put a `+`
currently (or put `hardbreak` attribute).


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/line-break-new-line-new-syntax-suggestion-tp3036p3038.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: line break (new line) new syntax suggestion

victor
Sure