Ticket #37 (closed task: wontfix)

Opened 2 years ago

Last modified 2 years ago

Generate newline for nicer html source

Reported by: qeantk Owned by: why
Priority: minor Milestone: 1.0
Component: gem Version: 0.5
Keywords: Cc:

Description

As it stand now, with 0.5, my HTML source seems to output all on one line. For readability of the output source (especially useful when trying to figure out what is going on with something new, like markaby) it'd be nice if each tag/block output a CRLF/system-specific-newline/hippopotamus after it, or at least if you had an optional setting for such.

Change History

Changed 2 years ago by qeantk

I lied - I'm using Markaby from svn: revision 82, to be specific.

Changed 2 years ago by qeantk

  • version changed from 1.0 to 0.5
  • milestone set to 1.0

Changed 2 years ago by zimbatm

  • status changed from new to closed
  • resolution set to wontfix

Hi, you can already set an indent option. Markaby will be much slower after that :

Markaby::Builder.set(:indent, 2)

Changed 2 years ago by joeruby

How much slower?

OP: You can also put this in any template:

  @@indent=2

Or put this in environment.rb:

  Markaby::Builder.set(:indent, 2) if RAILS_ENV='development'

For some reason, this in /config/environments/development.rb chokes:

  Markaby::Builder.set(:indent, 2)
Note: See TracTickets for help on using tickets.