GNOME Bugzilla – Bug 343910
Handle macintosh file (\r line endings)
Last modified: 2006-07-26 13:52:33 UTC
Hi, i'm using gtksourceview 1.4.2-2 within gedit 2.14.2. Syntax highlighting of file in mac format (\r line endings) is wrong : the whole buffer gets colored with the color of the first line, i.e. with a C file, the whole program gets purple (color of the first line, which is a #include). (To generate a mac format file, use something like : python -c "import sys; sys.stdout.write(sys.stdin.read().replace('\n', '\r'))" < unix.c > mac.c
actually this was already filed in bugzilla (though the original subject line was misleading) *** This bug has been marked as a duplicate of 316835 ***