On 3/7/07, Thomas Leitner <thomas_leitner at gmx.at> wrote:
> The problem are the line endings. Your file uses Dos/Windows file endings
> which webgen apparently doesn''t like...
Yep, that was the problem. Now I want to find out why the file had DOS
line endings, given that I work on a Mac.
> So I will have a look around the Ruby Mailing lists to find out
what''s best
> to do in this case. If nothing works using (?:\n|\r\n) will surely work.
Or, you could just discard the "\r"
(gsub("\r","")) from the whole
file (it''s useless!), and then still use "$" which carries
more
semantic than (?:\n|\r\n).
--
Andrea Censi
"Life is too important to be taken seriously" (Oscar Wilde)
Web: http://www.dis.uniroma1.it/~censi