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

Support soft wrapping of attribute values #891

Closed
xcoulon opened this issue Dec 28, 2021 · 0 comments · Fixed by #896
Closed

Support soft wrapping of attribute values #891

xcoulon opened this issue Dec 28, 2021 · 0 comments · Fixed by #896
Assignees
Milestone

Comments

@xcoulon
Copy link
Member

xcoulon commented Dec 28, 2021

In attribute declarations, values can be split across multiple lines with a line continuation character (\). Indentation on the subsequent lines is ignored.

Eg:

:description: If you have a very long line of text \
that you need to substitute regularly in a document, \
you may find it easier to split the value neatly in the header \
so it remains readable to folks looking at the AsciiDoc source.

See https://docs.asciidoctor.org/asciidoc/latest/attributes/wrap-values/#soft-wrap-attribute-values

@xcoulon xcoulon self-assigned this Dec 28, 2021
@xcoulon xcoulon added this to the v0.7.0 milestone Dec 28, 2021
xcoulon added a commit to xcoulon/libasciidoc that referenced this issue Dec 29, 2021
using recursive grammar rule to parse subsequent lines when
line ends with the `\` continuation character.

fixes bytesparadise#891

Signed-off-by: Xavier Coulon <[email protected]>
xcoulon added a commit that referenced this issue Dec 29, 2021
using recursive grammar rule to parse subsequent lines when
line ends with the `\` continuation character.

fixes #891

Signed-off-by: Xavier Coulon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant