Suppose you're testing Pages, Apple's word processing software that exports to EPUB, and you want to be able to look at the code to see just how Pages translates from word processing document to XHTML. Or why on earth it stuck an image between two words in your text. Unfortunately, Apple doesn't add returns, and frankly, it's tough to slog through:
You can use GREP to add a return before each opening tag that doesn't already have one. Search for
([^\r])(<[^/])(find a less than sign that is NOT after a return and NOT followed by a backslash) and replace it with
\1\r\2(whatever was found before the less than sign, followed by a return, followed by the less than sign and whatever followed it).
Then your XHTML will look like this:
And you might actually be able to assess Pages' usefulness as an EPUB creation tool.
And I know I'm far from the first person to ask this, but how is it that Apple can get away with charging more than $100 for a product in Europe that in the US only costs $79 (and about $50 if you buy it on Amazon)?