The XRC code generator is still generating CR line endings on the Mac instead of LF. The Mac hasn't used CR for many, many years, and editors are confused by it. The solution is to delete lines 90 and 91 in xrccg.cpp.