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

Break and wrap long contiguous text in source block when linenums are enabled #2198

Closed
mojavelinux opened this issue May 21, 2022 · 1 comment
Assignees
Milestone

Comments

@mojavelinux
Copy link
Member

If linenums are enabled on a source block, and contiguous text (text with no spaces) does not fit on a single line, the source wrap logic skips the rest of the page and writes the text on the next page. Instead, it should break the text so it continues on the next line.

Here's what currently happens:

bug

@mojavelinux mojavelinux self-assigned this May 21, 2022
@mojavelinux mojavelinux added this to the v2.0.x milestone May 21, 2022
@mojavelinux mojavelinux changed the title Wrap long contiguous text in source block when linenums are enabled Break and wrap long contiguous text in source block when linenums are enabled May 21, 2022
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue May 21, 2022
@mojavelinux
Copy link
Member Author

It's the same problem if the contiguous text falls on a wrapped line.

[%linenums,text]
----
one
two and then sooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooome
three
----

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