Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

DW CS6 - How can I stop "Apply Source Formatting" from adding line breaks after my css comments?

$
0
0

DW adds line breaks when I use the "apply source formatting" command in my css files. The css code formats corectly but after a css  /* comment */ - DW adds a line break every time I use the command so if I applies source formatting 10 times, I would get 10 empty lines after the comment.

 

BEFORE

 

 

/* --- Page Content  --- */

#page-content { margin: 0 auto; width: 100%; }

 

AFTER: css is ok but there is an extra line break after the comment.

 

 

/* --- Page Content  --- */


#page-content {
          margin: 0 auto;          width: 100%;
}

 

APPLIED MULTIPLE TIMES: if I apply source formatting again for another rule, a line break is added after all css comments, so you start to add space throughout the file

 

 

/*  --- Main Content  --- */
/*---------------------------------------*/








#main-content { padding-bottom: 0; } 

/* --- Page Content  --- */








#page-content {
          margin: 0 auto;          width: 100%;
}

 

 

How do I fix this? DW CS5 works fine


Viewing all articles
Browse latest Browse all 290743

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>