Improvement for fold method

Improvement for folding unstructured fields with continuous spaces around line break.
Tested against 1.8.7, 1.9.2 and 1.9.3.
Hoping for comments.