You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a problem that is specific to Pygments (source-highlighter=pygments). This does not happen when using CodeRay (coderay) or Rouge (rouge).
Pygments strips trailing whitespace while highlighting the code. This affects where the conum is placed on the final line. We'll need to capture the length of the trailing whitespace beforehand and include it when placing the first conum on that line.
…inal line
- when highlighting with Pygments, don't drop whitespace in front of conum on last line
- move line feed fragment to constant
- don't insert a forced space before conum (since we now preserve the spaces)
- disable Pygments' strip newline behavior (minor optimization only)
…inal line
- when highlighting with Pygments, don't drop whitespace in front of conum on last line
- move line feed fragment to constant
- don't insert a forced space before conum (since we now preserve the spaces)
- disable Pygments' strip newline behavior (minor optimization only)
…inal line (PR asciidoctor#502)
- when highlighting with Pygments, don't drop whitespace in front of conum on last line
- move line feed fragment to constant
- don't insert a forced space before conum (since we now preserve the spaces)
- disable Pygments' strip newline behavior (minor optimization only)
This only happens to the last annotation and only when it is on the last line of a code block.
In the following code block the annotations are aligned.
But annotation 2 is not aligned in the generated output:
However, the spacing is respected when the last annotation is not on the last line of the included code block.
The spacing for annotation 2 is also rendered correctly if we add another line of code with a 3rd annotation, but then that of annotation 3 is not.
output:
The text was updated successfully, but these errors were encountered: