How to Remove Line Breaks in Dreamweaver
Line breaks are represented with the HTML code "" or "<br />" in Dreamweaver, without the quotes. These codes place a single carriage return in your document, which forces the text to continue on the next line. This is a separate code that can be placed within a paragraph, designated by the code "<p>". When you copy and paste text, Dreamweaver will frequently use the "<li>" code, which formats each line as a list. You can remove any of these codes using Dreamweaver's Find and Replace function.
Instructions
-
-
1
Open your HTML page in Dreamweaver.
-
2
Hold the "Ctrl" key and press "F" to open the "Find and Replace" window.
-
-
3
Click the drop-down menu next to "Search" and select "Specific Tag."
-
4
Click the drop-down menu to the right of "Specific Tab" and select "br". Alternatively, select "p" or "li" to strip out these other tags, which can simulate line breaks.
-
5
Click the drop-down menu next to "Action" and select "Remove Tag." If you previously selected "p" or "li" as the code, select "Strip Tag" instead.
-
6
Click "Replace All" to remove all line breaks.
-
1