elvirbrk / NoteHighlight2016

Source code syntax highlighting for OneNote 2016 and OneNote for O365 . NoteHighlight 2013 port for OneNote 2016 (32-bit and 64-bit)
GNU General Public License v2.0
3.79k stars 393 forks source link

Lines only containing CRLF are created with different height #123

Open iamhammer opened 3 years ago

iamhammer commented 3 years ago

If a line of code contains only CRLF characters it will be created in the table with slightly different height and spacing than other lines (see the red highlights in the image below). This causes the vertical alignment with the line numbers to be off. Statements with more than a couple of these empty lines amplify this effect.

2020-07-30_10-40-03

iamhammer commented 3 years ago

Work-around: Select the table and then re-select the font used. This will cause the table text to be re-drawn with the spacing correct. image