You can edit the tidy configuration in TextMate. Open the bundle editor and find Tidy in the HTML section.
I altered mine to this:
# BEWARE. Errors are suppressed. "${TM_TIDY:-tidy}" -f /dev/null -q --indent auto -utf8 -wrap 0 --wrap-attributes 0 --break-before-br 1 --clean y --word-2000 y --tab-size $TM_TAB_SIZE --indent-spaces $TM_TAB_SIZE|\ if [[ "$TM_SOFT_TABS" == "YES" ]]; then cat; else ruby -pe '
unless $in_pre tab_size = ENV["TM_TAB_SIZE"].to_i space, text = /( *)(.*)/m.match($_)[1..2] $_ = "\t" * (space.length / tab_size).floor + " " * (space.length % tab_size) + text end
$in_pre = true if(/<pre>/) $in_pre = false if(/</pre>/) ' fi
You can play with your own preferences to make it like you like it. The docu is: http://tidy.sourceforge.net/docs/quickref.html
Tidy is handy, but I haven't been able to make it work exactly like I like (HTML tidy or Perl tidy), but it's at least close.
I did check to see if your line would be broken up, and it was not.
tigercore wrote:
The HTML Tidy function used to tidy the code in this format:
<p>Paragraph Text here</p>
but not for some reasons its doing it like this:
<p> Some text here </p>
And putting everything on a new line. It's also changing the doctype from XHTML Transitional to XHTML Strict.
Anyone know why it's doing this? Is it a preference or somhing I have changed somewhere?