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
Second, huh, I can't reproduce this. Is it still happening for you?
I retried it again and found that the problem actually occurs when asking for the line number to be displayed (either by line-numbers or line-highlight). That is,
This will ignore the last line if there's no newline:
<preclass=include-code>
path: text.txt
highlight: text
line-numbers: on
</pre>
This displays correctly:
<preclass=include-code>
path: text.txt
highlight: text
</pre>
FeignClaims
changed the title
<pre class=include-code> ignores the last line if there's no newline
<pre class=include-code> ignores the last line if there's no newline when line numbers are required
Apr 19, 2023
Ah, thanks for isolating it! Indeed, I was using a slightly wrong check to see if there was anything leftover at the end of my "stuff the text into line-number wrappers" loop, which would accidentally say there wasn't when it was only text!
Fixed now, I'll do a release in a bit with the update.
text.txt:
but only output:
The text was updated successfully, but these errors were encountered: