I'm testing TinyMCE as an option for those of my users who are intimidated by HTML. So far it's working well, except for one thing: the HTML generated by TinyMCE is all on one line. Now, this has no effect on what the site looks like, but it does have an effect on the site admin (me) who might want to edit the HTML after the user has submitted it. E.g., TinyMCE makes this:
<h3>My favorite foods</h3><ul><li>tomatoes</li><li>chocolate</li><li>strawberries</li></ul>
I want it to make this:
<h3>My favorite foods</h3>
<ul>
<li>tomatoes</li>
<li>chocolate</li>
<li>strawberries</li>
</ul>
I tried the HTML Tidy module; however this doesn't quite do what I'm looking for--while it provides a *filter* that is applied when the node content is served, it doesn't actually do anything to the user's original input. What I'm looking for is something I can use to automatically make the source of the node legible for advanced users.
(Note: this is not a Filtered HTML issue as I've seen in many other posts. I don't want or care about <p>
tags being inserted, I just want the \n character added in the appropriate places to the actual submission. HTML Tidy does this when the node is accessed (along with indentation), but does not do anything for the actual source I'm editing).
Anyone have any suggestions as to how I could accomplish this?