fixed bug: now can correctly delete front spaces and end spaces of paragraph before breaking lines