linenums and nowrap

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

linenums and nowrap

rlarsen
Hello,

I've got a maven project using asciidoctorj version 1.5.6.

I've noticed that the syntax highlighter for code blocks can get out of sync if the sample block has long lines that require wrapping. The wrapped line gets assigned the next number and by the end of the block, the numbers are misaligned and the last few lines are displayed without line numbers.

I can't seem to use the nowrap option and the linenums option at the same time. I tried `source%nowrap`, setting a global `:prewrap!:` (docs) and `options="nowrap`. Is this still true in later versions?

sample xml code block, should end up with 5 lines and 5 linenumbers:

.Test block
[source,xml,linenums]
....
<book id="111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111">
      <author>2</author>
      <title>3</title>
      <description>4</description>
   </book>
....

Thanks!