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 | 2006 | January 9, 2020 | |
| Chroma-based syntax highlighting introduces empty lines when copy-pasting code blocks | 6 | 184 | January 25, 2025 | |
| Extra lines in code blocks | 19 | 490 | December 15, 2024 | |
| Empty line in {{highlight}} shortcode | 2 | 716 | December 16, 2019 | |
| Code syntax highlighting has extra newline characters | 2 | 688 | January 11, 2023 |