1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-11-27 22:38:42 +02:00
Files
chroma/formatters
Gusted e9ffd5a79a fix: don't emit empty tail tokens (#1121)
When tokens are split into lines, tokens that end with a newline are
emitted again as an empty token, which is confusing and doesn't have any
benefit. This conversion shouldn't emit a empty tail token.

Adds a test.

I noticed this issue by a CI failure for the output of a Go program that
was changed because of
d0ad679444 and the new output contained a
empty whitespace token at the beginning of most lines.
2025-08-27 19:51:01 +10:00
..
2022-01-27 15:22:00 +11:00
2024-08-25 16:37:15 +10:00
2022-01-27 15:22:00 +11:00