Have you uploaded a theme or plugin, and then attempted to edit the files to find out there are “double line breaks” every place there should be single line breaks? It makes the files look REALLY messy huh? We have been battling this for years. Finally we decided to look closer and find a solution.
The solution is actually VERY easy. You can execute the solution from “free” NotePad++ or you can use Adobe Dreamweaver. The screenshots are from Adobe Dreamweaver CS5.5.
The solution to removing double line breaks in WordPress theme and plugin files is to:
Step 1: Open the file with the line breaks
Step 2: Edit -> Find and Replace…
Step 2(b): Make sure you check the checkbox labeled “Use regular expression”
Step 3: Enter the following into find:
rnrStep 4: Enter the following into replace:
rnStep 5: Click “Replace All”



