smcmahon/Products.PloneFormGen — pull request #70 by mjfinney (2013-04-07 19:53:12+00:00)
Title: Fix MaxLengthValidator to only count newlines once.

This request fixes #68.

The javascript counter counts newlines as one character but the value of the field in the python validation script shows newlines as '\r\n'. This request replaces '\r\n' with '\n' for the character count while leaving the original value unchanged. This makes sure that the two counts match.