Tim Hunt 4a7cc24808 MDL-35364 shorten text: don't return invalid HTML.
I also broke the unit tests into more, smaller, named tests, so that
when things start failing, more tests are run, and it is clearer what
the problem is.

In a couple of cases, I adjusted the $ideal lenght in the test. A
careful counting of the characters in the test input (added as comments)
suggests that the new values make for better tests.
2013-04-22 19:21:40 +01:00
..
2013-03-24 17:48:11 +01:00
2013-02-22 10:53:47 +08:00
2013-03-28 14:36:33 +08:00
2013-03-22 13:09:50 +01:00
2013-01-11 12:23:22 +01:00
2013-03-24 18:59:33 +01:00
2013-01-04 15:12:31 +01:00
2013-01-29 12:57:03 +08:00