I have a text area with multiple paragraphs.
- is there a way to remove any extra space before paragraph starts and after a paragraph ends.
- is there a way to remove multiple enter / space between 2 paragraphs. I need only one enter between paragraphs.
P1 - This is correct, there is no space after last word 'test2' and also there is no space before the first word ‘This’
P2 - This is incorrect as there is one space (or more) after last word 'test4.'
P3 - This is incorrect as there is one space (or more) before the first word ‘This’.
P4 - This is correct as there is only one space / enter between paragraph 3 and 4.
P5 - This is incorrect as there is more than one space / enter between paragraph 4 and 5.
Example
----------------------------------------------------
{code}
This is a test1. This is a test2.
This is a test3. This is a test4.
This is a test5. This is a test6.
This is a test7. This is a test8.
This is a test9. This is a test10.
{code}
----------------------------------------------------