Fork me on GitHub

article

A Welcome Change to TextEdit

October 6, 2006 | Computers

As a you might know I’m a huge proponent of a simple utility called TextEdit on OS X for its ability to export good looking HTML. I use it almost exclusively to convert word files by first exporting to RTF and then opening the file with TextEdit.It must have happened with the 10.4.8 update – TextEdit now properly nests lists when exporting as HTML.

Updated below

It wasn’t a huge deal before since it was easily fixed, but TextEdit used to do nested lists like this:

<ul>
    <li>item</li>
    <li>item2</li>
    <ul>
        <li>item3</li>
        <li>item4</li>
    </ul>
    <li>item5</li>
</ul>

See how the nested list is not contained within a list item? On long and nasty lists it could be very time consuming to go back and clean all this up by hand. Now that has been fixed and we properly get this:

<ul>
    <li>item</li>
    <li>item2
        <ul>
            <li>item3</li>
            <li>item4</li>
        </ul>
    </li>
    <li>item5</li>
</ul>

The list is properly embedded in the list item.

Happy day.

Update: No sooner do I write this than do I convert another document and don’t get the properly nested lists… I have to now figure out what the trigger was to get those properly nested lists.

2 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  • Wow, that’s odd….

    Tom, October 6, 2006 11:51 pm | permalink

  • I think part of the problem is that the RTF file is exported from Word – and though it is an RTF file word will always fail to properly export RTF list items. It converts them to tabs…

    Just another example of MS bastardizing a perfectly good format.

    Shawn Parker, October 7, 2006 1:20 pm | permalink

Comments are closed