Sublime Forum

Unicode line separators (\0x2028)

#1

When I copy paste some content from another unicode source, my text has many of these unicode line-separators (\0x2028). Sublime doesn’t reveal these even though “draw_white_space” is on. I only see them when I perform build.

Sublime is set to Unix line endings, but even after saving, the unicode line-separators (\0x2028) remain in the file.
In BBEdit, I can only see these and remove them with “Zap Gremlins”.

I tried the package “find non ascii characters” but this affects other unicode characters which I need to remain.

I want these unicode line-separators (\0x2028) to be highlighted so that I know I need to remove them. Or I am happy with Sublime simply over-writing them with the standing line ending. Otherwise they destroy the build.

Any ideas?

0 Likes

#2

You could use a different plugin that has a customable character whitelist: packagecontrol.io/packages/High … gy%20Chars

Or you could write a plugin that replaces this unicode character with a proper newline before saving.

0 Likes

#3

Thank you!

tim

0 Likes