Remove Empty Lines
-
is there an easy way to remove empty lines in Richtextbox? any help will be greatly appreciated. I have been trying do this on my own for months Couldn't find a single easy way of doing this. I tried converting the text to rtf then removed all "/par" and then reconverting it to text. it worked well to a certain extent but was not perfect. thanx
-
is there an easy way to remove empty lines in Richtextbox? any help will be greatly appreciated. I have been trying do this on my own for months Couldn't find a single easy way of doing this. I tried converting the text to rtf then removed all "/par" and then reconverting it to text. it worked well to a certain extent but was not perfect. thanx
I think empty lines have a format like '
\par??\par
', so you may look for this syntax and replace it with '\par
' -
I think empty lines have a format like '
\par??\par
', so you may look for this syntax and replace it with '\par
'sorry that was just a typing mistake in the message and I did use it the same way before. my problem is when I search for "\Par" using whole word option it finds it; and also finds what ever that looks like this "{\Par"(even if I did use the whole word option it doesn't find; just! "\Par". If it is "a\Par" it doesn't matter but if it is other then numbers or alphabetic characters; it just finds it and gets rid of it). thanx for u'r help anyway.