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

Sometimes characters are lost when highlighted #118

Open dextersa opened 4 years ago

dextersa commented 4 years ago

When I try to highlight the following code, the characters at the end will be lost and all languages will happen.

IN

或者 今天zip()作用的对象是包含列表的列表:

我自己试了一下list(zip(matrix)),结果: [([1,2,3,4],)([5,6,7,8],),([9,10,11,12)]

OUT

或者 今天zip()作用的对象是包含列表的列表:

我自己试了一下list(zip(matrix)),结果: [([1,2,3,4],)([5,6,7,8],),([9,10,11,12

it lost 2 char .

This situation may be related to the use of Chinese. I tried to reduce some characters and this situation disappeared, so I don't know which character caused the problem. Please fix this problem.

image

elvirbrk commented 3 years ago

Not able to reproduce. Can you provide sample OneNote page with this issue.

Victordongy commented 3 years ago

I did encounter the situation where some parts is consumed after highlighting. A simple reproduction case would be

image

In NoteHighlight, the reformatted code is

image

But the result after highlighting the code part becomes

image

elvirbrk commented 3 years ago

Can you attach that page in OneNote (File->Export->Page) and attach it here?