12 Replies Latest reply: Dec 21, 2012 7:51 AM by ethayer777 RSS

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

    ethayer777

      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