{"id":812,"date":"2012-08-31T16:35:47","date_gmt":"2012-08-31T07:35:47","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=812"},"modified":"2012-09-14T20:31:05","modified_gmt":"2012-09-14T11:31:05","slug":"how-to-remove-extra-linebreaks-and-spaces-in-dreamweaver","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-remove-extra-linebreaks-and-spaces-in-dreamweaver\/","title":{"rendered":"How to Remove extra linebreaks and spaces in Dreamweaver"},"content":{"rendered":"<p>How to remove extra spaces<\/p>\n<ol>\n<li>While the document is open in Dreamweaver, press CTRL+F to load the Find &amp; Replace dialog box. Do the search on the source code view.<\/li>\n<li>Check the box \u201cUse regular expression\u201d and uncheck any other boxes.<\/li>\n<li>Find: <strong>[\\r\\n]{2,}<\/strong><\/li>\n<li>Replace: <strong>\\n<\/strong><\/li>\n<li>The hit \u201creplace all\u201d<\/li>\n<\/ol>\n<p>That\u2019s it!<\/p>\n<p><!--more--><\/p>\n<p>However, take note that this method will remove any existing white space on your code.<\/p>\n<p>Another thing. When you download the file again, Dreamweaver will add another white space on your code. Messing it up again. This is because of encoding and server type.<\/p>\n<p>This usually happens if you are using Dreamweaver CS3 and your are downloading a file from a Unix\/Linux server to a Windows based local PC.<\/p>\n<p>Change Your Dreamweaver Settings to Prevent it<\/p>\n<ol>\n<li>Inside Dreamweaver, click Edit on the menu.<\/li>\n<li>Then Preferences.<\/li>\n<li>Then Code Format.<\/li>\n<li>Then on the \u201cLine Break Type\u201d select \u201cLF (unix)\u201d<\/li>\n<li>Click Ok. Done!<\/li>\n<\/ol>\n<p>A thanks to Ryman from TechiBubble for wonderful tips :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to remove extra spaces While the document is open in Dreamweaver, press CTRL+F to load the Find &amp; Replace dialog box. Do the search on the source code view. Check the box \u201cUse regular expression\u201d and uncheck any other boxes. Find: [\\r\\n]{2,} Replace: \\n The hit \u201creplace all\u201d That\u2019s it!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,4],"tags":[384,385,63,376],"class_list":["post-812","post","type-post","status-publish","format-standard","hentry","category-tips-n-tricks","category-xhtml-coding","tag-dreamweaver-tips","tag-html-tips","tag-tricks-web-development","tag-web-development-2"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=812"}],"version-history":[{"count":3,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/812\/revisions"}],"predecessor-version":[{"id":814,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/812\/revisions\/814"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}