trim excessive trailing whitespace from subfield contents
authorGalen Charlton <gmc@esilibrary.com>
Thu, 2 Aug 2012 15:28:42 +0000 (11:28 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 2 Aug 2012 15:28:42 +0000 (11:28 -0400)
commit7a1a4928f4f4f7786f30100c58f2b942227a9a49
treeb3a2c2e3c472fce9d9e9e92bacac63ac0e5557a9
parentc427e4db4bbe3c6dc11bb8e5739a964fee6ac381
trim excessive trailing whitespace from subfield contents

If a subfield has too much (arbitrarily defined as at least 10)
of trailing whitespace, trim the whitespace.  This works around
a problem applying certain stylesheets (like the MARCXML-to-MODS
stylesheet) that use a recursive XSLT function to trim whitespace.

Note that only "excessive" whitespace is trimmed; some systems
emit subfields that contain semantically significant trailing
whitespace in certain fields.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
marc_cleanup