|
Re: Making vanilla ignore whitespace in HTML
Wednesday, April 26, 2006, 2:44:38 PM, mrzoon wrote:
> I'm getting really tired of editing snips containing HTML given
> vanilla's propensity for interpreting whitespace as carriage
> returns. If I edit the HTML in a "pretty" format, vanilla stretches
> the resulting page out mindlessly; if I remove all white space, the
> result is correct, but editing is hell. What's the point of all the
> newlines? Where is this happening? Does this work this way because
> of something else important, or can it be changed?
the original idea was that you can simply press enter twice and get
usual paragraph formatting. however, we all know about the lousy state
vanilla's html is in, and this paragraph formatting should better be
done using real <p> tags and not <br>.
you can circumvent this processing by prepending a newline with a \ -
e.g.
-- snip --
foo\
\
bar\
-- snip --
will result in "foobar" being rendered.
if you want to disable it alltogether, in vanilla.r there is a
function called html-format which calls html-format-breaks. simply
comment out (prepend a ';') the call the html-format-breaks and this
behaviour will be gone - for everthing and forever. (or at least until
you uncomment it again :)
... earl walker out ...
|