is there a way to configure line breaks in markaby output?

Magnus Holm judofyr at gmail.com
Mon Nov 2 13:16:07 EST 2009


I think this should do it:

  Camping.goes :Nuts
  Nuts::Mab.set(:indent, 2)

You should probably only use it in development, because I think it's
pretty slow.

//Magnus Holm



On Mon, Nov 2, 2009 at 18:57, David Susco <dsusco at gmail.com> wrote:
> Hi all,
>
> Instead of having the following:
>
> def index
>  h1 'My Site'
>  p 'Welcome to my site!'
> end
>
> output this:
>
> <h1>My Site</h1><p>Welcome to my site!</p>
>
> Is there anyway that I can configure Markaby to add line breaks
> between block elements so I'd get something like this:
>
> <h1>My Site</h1>
>
> <p>Welcome to my site!</p>
>
> Obviously it makes no difference to the browser, it would just make it
> easier on me when debugging and testing.
>
> --
> Dave
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>


More information about the Camping-list mailing list