Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359734 - [formatting] CSS formatter inserts space before semicolon
Summary: [formatting] CSS formatter inserts space before semicolon
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.css (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.3.2   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 12:13 EDT by Victor Homyakov CLA
Modified: 2011-11-29 16:53 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Homyakov CLA 2011-10-03 12:13:49 EDT
CSS formatter inserts space before semicolon if comment is present, as in this example:

h1 {
  font-size: /*15pt*/ 20px;
}

after formatting it will look like:

h1 {
  font-size: /*15pt*/ 20px ;
}

Eclipse: Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 1
Build id: 20110916-0149
Comment 1 Nick Sandonato CLA 2011-11-29 16:53:07 EST
Corrected the formatter and added a unit test for Indigo SR2.