There has been a problem with developing from a Windows machine and using and modifying the files from a Unix or Linux machine. Well, the problem is that they don’t detect end of line styles in the same way. In this article we are going to explain how to fix 2 problems associated with this issue.
The solution is simple. You will need the free software Notepad++. Once you have opened your file with this program:
“Ctrl+Shift+A” on the keyboard and finally go to file menu “Edit”->”EOL Conversion”->”Windows format”
After years of just dealing with seeing the double line breaks and leaving them be, we finally got fed up with them. Typically removing them causes some heartache because doing so in most programs removes any tabbing you were using for source formatting.
This can also occur, we believe, if you use the WordPress theme/plugin upload tool. Because it uses Linux/Unix commands to decompress and extract the data line by line, it also adds in Unix style line endings which causes the “double line break” affect.
Thankfully, with Notepad++ you can now fix your problem with a “find and replace”.
© Copyright 2024 Sethmatics Websites All Rights Reserved.