Changes for version 0.12

  • Discoered it didn't work nearly as well (regarding counting of "visible" output as I thought so I rewrote it. Three times actually but ended up with something similar to the original in the end, mostly because, bizarrely, HTML::TreeBuilder does not make text into nodes. This makes the module half useless. If it only did that, it would simple to have redone this module with it in a bombproof way. I considered redoing it with XML::LibXML to achieve the same thing and might add that in eventually with an "eval require" kind of check.
  • Added some accounting for <pre/> tags to be taken literally.
  • Lorenzo Iannuzzi suggested a way to clip to word-ish boundaries instead of truncating leaving hanging space. I already do something similar in TT2 so I kept his as on_space() and mine as cleanly(), which can accept a regex if you know how you want to handle it better than the default.
  • Took out style setting, it was pointless, goofy, and antithetical to the point of the module.
  • Was going to take out "beta" notice - but rewrote too much of it to do so.
  • Moved to Module::Install.
  • Noticed the utf8 ellipsis is tripping up perl 5.6. But I don't want to put a prereq in... maybe skip that test for that version.
  • Several new tests.
  • Pod clean up, mild reorg.

Modules

(beta software) truncate HTML by percentage or character count while preserving well-formedness.