<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>On Jul 5, 2007, at 6:30 AM, Tobias Jung wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">At 12:03 Uhr -0400 03.07.2007, Thomas Aylott (subtleGradient) wrote:</div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>I regularly have to deal with html documents that have been stripped of all newlines.</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Well, maybe this isn't the kind of solution you're looking for, but...</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Wouldn't it be better to use the "tidy" tool on these files _before_ opening them in TextMate? After all, it isnt't fun to work with "no linebreaks" HTML files anyway.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Using the following command line in the Terminal should give you a cleanly formatted file and leave most of the HTML code itself untouched:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">tidy -o destiny.html -iq -wrap 70 --tab-size 4 --indent-spaces 4 source.html</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Kind regards,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Tobias</div></blockquote><div><br class="webkit-block-placeholder"></div>unfortunately the whole reason I have to load these files is to debug them asis.<div>tidy-ing them would break their brokenness<br><div><span class="Apple-tab-span" style="white-space:pre"> </span>thomas Aylott — <b style="font-weight: bold; ">subtleGradient</b></div></div><br></div></div></body></html>