Commit graph

5 commits

Author SHA1 Message Date
Domenic Denicola
eab0448455 A couple more one-off fixes 2015-05-17 16:36:16 -04:00
Domenic Denicola
ebd3776390 Fix all double-periods
Needs to be done on a case-by-case basis, as sometimes they become ellipses, and sometimes single periods, and sometimes there's a stray <em> or </em> in the mix.
2015-05-17 16:30:44 -04:00
Domenic Denicola
4019f5d1e6 Tweaks and bug-fixes for the cleanups
Several notable fixes:

- Fixed a bad bug with <span> remover: since moving the child node to a document fragment changes the indices of the childNodes collection, this would leave several nodes in limbo, with the net effect of removing their text from the document.
- Fixed the empty-<em> remover to replace the empty <em> with a space, instead of a removing it entirely; this leads to a lot fewer wordsstuck together, which were starting to accumulate erroneously in substitutions.json.
- Warn instead of error on bad substitutions: this makes it easier to actually find the bad substitution afterward, since then the output still happens.
2015-05-17 16:19:23 -04:00
Domenic Denicola
801e28d602 A lot more cleanups 2015-05-15 01:29:34 -04:00
Domenic Denicola
247f713e13 Better cleanup in the convert step 2015-05-11 22:52:14 -04:00