It’s likely an issue of Windows newlines vs Unix newlines. See this previous thread [SOLVED] Built-in `highlight` function adds whitespace (new lines)
zwbetz
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Built-in `highlight` function adds whitespace (new lines) | 16 | 2064 | January 9, 2020 | |
| Chroma-based syntax highlighting introduces empty lines when copy-pasting code blocks | 6 | 201 | January 25, 2025 | |
| Extra lines in code blocks | 19 | 529 | December 15, 2024 | |
| Empty line in {{highlight}} shortcode | 2 | 723 | December 16, 2019 | |
| Code syntax highlighting has extra newline characters | 2 | 693 | January 11, 2023 |