Change length of divider in text formatter to span notes

Hi,

This is a very basic change I made to the divider length in the text formatter. I just wanted the divider to span the length of all the text in the list. I haven't added tests per se, but I changed the expected output to match what I wanted.

Thanks,

Toby