Badger::Data::Facet::Text::Whitespace - validation facet for whitespace
This module implements a validation facets for munging whitespace on text values.
This method performs whitespace handling on the text passed by reference as the first argument.
If the pre-defined
preserve then the text will be unmodified.
fold then all whitespace characters in the text (carriage returns, newlines, tabs) will be converted to spaces.
collapse then all whitespace characters will first be converted to spaces as per
fold. Any leading and trailing whitespace is then removed and any sequences of multiple spaces are collapsed to a single space.
Andy Wardley http://wardley.org/
Copyright (C) 2001-2012 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.