Update on that regular expression. Try using
/([ ]{2,}|[\n\r\f\t]+)/ instead as this seems to actually work. The previous regex I posted fubars the plain text templates by putting {literal} tags inside other Smarty tags.
This new one should allow you to easily upgrade your plain text templates and still use the Smarty mod posted here.