Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to hard break lines via hardbreaks attribute #16

Open
GoogleCodeExporter opened this issue Jul 17, 2015 · 0 comments
Open

Add option to hard break lines via hardbreaks attribute #16

GoogleCodeExporter opened this issue Jul 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

In AsciiDoc, you can hard wrap paragraphs of text and they will be combined 
into a single paragraph. While this is expected behavior for some people, to 
others it's not.

Add a feature to AsciiDoc to treat newlines in paragraph content as real line 
breaks.

The next paragraph contains two phrases separated by a single newline character:

Roses are red
Violets are blue

When the following attribute is set:

:hardbreaks:

AsciiDoc would output (when using an HTML backend)

Roses are red<br>
Violets are blue

(naturally, other backends would use the appropriate line break character).

I propose for this substitution to occur where ever the line break character 
(+) is processed.

Original issue reported on code.google.com by dan.j.allen on 27 Jan 2013 at 6:58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant