0
Under review

Remove Extra Lines Added When Editing Wordpress

Cori Lam 5 years ago updated by Alexander Blach (Developer) 5 years ago 3
When I open Wordpress files in Textastic that have been edited in the native editor, Textastic is adding additional blank lines. While not hurting the code, it's a real eyesore. Is there a Find and Replace Way to eliminate the extra lines? Thanks in advance
Under review
Hello,

Textastic does not add lines to an existing file when it is opened. I guess that the blank lines actually exist in the file.

What happens when you open the file in another editor (like Apple's TextEdit)? 

If the lines really only show up in Textastic and not in another app, it would be great if you could send me such a file so that I can have a look at it.

You can bring up Find & Replace with Edit -> Find -> Find and Replace or the Cmd-Alt-F keyboard shortcut.
Hi Alexander- Thanks for getting back to me. I don't think I explained it very well. Here's a thread for the same issue with SublimeText: http://wpjim.com/how-to-remove-extra-blank-lines-t...
I think it's a problem with the WP editor, but it's an issue that occurs in most text editors (I'm even getting it with textedit). Let me know if you have a similar fix- thx!
You can do that with Textastic's Find & Replace feature.

Click on the loupe icon in the find field, choose "Insert Pattern" and "Line Break". Do the same again to add another line break to the find field.

Then click on the replace field and choose "Insert Pattern" and "Line Break" again from the find field menu to add a line break to the replace field.

It should then look like this:



When you press the "All" button it should replace all double line breaks with one line break.