Yes, I've long lamented this. Here's a proposed solution: http://www.masonhq.com/resources/todo/view.html?id=459
Patches to the compiler are welcome! :) Jon On Jul 27, 2007, at 11:58 AM, C.J. Adams-Collier wrote: > The primary issue that we're running into is that the following places > far more whitespace into the output than is intended... > > <%doc> > This is an example component > </%doc> > > <%shared_vars> > $foo > </%shared_vars> > > <%method method0> > some output > </%method> > > <%doc> > This is the default method > </%doc> > This is the output of the default method. > EOF > > I count 7 "hidden" newline characters which would not be noticed by > your average neophyte mason developer. Is there any way we can combat > the fact that newlines are generated at the end of all "meta" tags? > Maybe add an optional argument to the Request constructor indicating > that > > <%init> > </%init> > > should be treated as > > <%init> > </%init>\ > > This seems like something that has a somewhat simple solution, but I'm > not familiar enough with the innards of HTML::Mason yet to determine > what that solution might be. > > > On 7/27/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote: >> (Switching to mason-users@) >> >> Check out the preprocess and postprocess* params: >> >> http://www.masonhq.com/docs/manual/Params.html#preprocess >> >> This will be inefficient with lots of component calls, though. >> >> Jon >> >> On Jul 22, 2007, at 6:20 AM, C.J. Adams-Collier wrote: >> >>> Hey there Jon, Dave, list, >>> >>> Is there an option to HTML::Mason::*Handler or something that would >>> apply an implicit >>> <%filter> >>> s/^\s+//s; >>> s/\s+$//s; >>> </%filter> >>> to every component? >>> >> >> > > > -- > moo. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users