POV-Ray : Newsgroups : povray.general : What is the PovWin editor's line length limit? : Re: What is the PovWin editor's line length limit? Server Time
3 Aug 2024 02:21:36 EDT (-0400)
  Re: What is the PovWin editor's line length limit?  
From: Brian Elliott
Date: 4 Jul 2004 08:05:34
Message: <40e7f28e$1@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:cc8jf3$om3$1@chho.imagico.de...
> You should notice a few things.
>
> - POV-Ray does not care about the line endings, if the WinPOV editor has
> trouble with them this is a completely different issue.
> - you can of course easily add line endings anywhere a whitespace occurs
> in the file without affecting POV-Ray's ability to interpret the script.
>   A 'sed "s? ?\n?g"' would for example replace every space with a newline.

Thanks Christoph,

Yep, I am aware that the SDL interpreter [forgive me if incorrect
terminology] sees whitespace characters space, tab and \n as interchangeable
between tokens.

Still wondering about the WinPov editor though.  I could try to break it to
find out.  Curiously, this Wings exporter produces tightly-packed vectors -- 
not one space in the entire line, neither inside nor between vectors.
Still, />,/>,\n/g is a trivial regular expression replacement.

Maybe it's time to get Cygwin on this PC, as there are no RE filters like
sed on WinXP.

However, and I may be wrong, but I thought even sed under *NIX has a line
length limit, because it and other editors would be restricted by whatever
the limits.h source file set at compile time for line buffering, and sed
does track line numbers of the input file.

Brian


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.