[Nitro] Whitespace

George Moschovitis george.moschovitis at gmail.com
Sat Nov 4 09:47:02 EST 2006


Thanks for this bug fix. How about sending me a proper darcs patch.
This way you will get properly credited in the Changelog.

thanks,
George.

On 11/4/06, Lars Olsson <lasso at lassoweb.se> wrote:
> Hello,
>
> I found the bug. In /nitro/compiler/elements.rb the doctype method is
> missing. It should be added. The one from /nitro/compiler/morphing.rb
> works just fine:
>
> (from nitro/compiler/morphing.rb, Listener class)
>
>      def doctype(name, pub_sys, long_name, uri)
>        @buffer << "<!DOCTYPE #{name} #{pub_sys} #{long_name} #{uri}>"
>      end
>
> (you might just want to add a newline at the end. DOCTYPEs generally
> stand on its own line.)
>
> Btw, The fix above works with the default transformation pipeline. There
> *might* be some other compiler classes (not in the default pipeline)
> that need that method added too.
>
> Sincerely
>
> /lasso
>
>
> ________________________________________
> Lars Olsson
> lasso at lassoweb.se
> http://www.lassoweb.se/
>
>
>
> George Moschovitis skrev:
> >> No problem there. REXML already supports DOCTYPEs. The problem is that
> >> Nitro strips the DOCTYPE *after* REXML has processed the template. Since
> >> some XML tools require this type of information in order to function
> >> they are unable to parse pages rendered by Nitro. This is *very* bad in
> >> my opinion (luckily there are workarounds).
> >
> >
> > can you (or someone else)  provide a patch for this?
> >
> > -g.
> >
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>


-- 
http://www.gmosx.com
http://www.nitroproject.org


More information about the Nitro-general mailing list