[antlr-interest] Problematic links

Johannes Luber jaluber at gmx.de
Tue May 29 07:27:20 PDT 2007


David Piepgrass wrote:
>>> has no line breaks.
>> It is a PC versus Linux thing. most editors will know how to deal
>> with this.  Just cut and paste into your programming editor.
> 
> I'm afraid that doesn't work - no line breaks appear when pasting into
> a programmer's editor such as Notepad2 or ANTLRWorks.
> 
> However, if I save from Firefox or IE into a text file, then line
> breaks DO appear - but at regular intervals, not where they are
> supposed to be. It looks like this:

I suppose Firefox treats files with the suffix *.g as HTML files, not as
text files, when rendering. The text mime type isn't set on the server
side so Firefox has to guess. The workaround is to save those files and
view them with another editor as you found out.

Best regards,
Johannes Luber


More information about the antlr-interest mailing list