Bug in "Format CSS Code..."

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
Mot
Posts: 28
Joined: Tue Oct 09, 2007 4:13 am
Contact:

Bug in "Format CSS Code..."

Post by Mot »

Just realized - after pulling out a lot of hair - that the CSS formatter is adding a space before selector IDs.

In other words:

Code: Select all

span#footer {font-family: verdana, arial, sans-serif;
    font-size: 9px;
color: #0000FF;
    text-align: center;
}
becomes:

Code: Select all

span #footer {
    font-family: verdana, arial, sans-serif;
    font-size: 9px;
    color: #0000FF;
    text-align: center;
}
This, of course, breaks the CSS for that selector#id.

Is there something I'm missing in the CSS formatter settings that could prevent this problem?

Having used WeBuilder for just a few weeks now, and ignoring this little issue, I can honestly say I've yet to find a better web coding tool. Heck of a nice job, Karlis! I've looked at a lot of apps and used a few - like First Page 2006 and CoffeeCup 2007 to name just a couple. WeBuilder totally blows them out of the water!
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

If this is really a bug (not sure about that at the moment), we will see what can be done.
Thanks for reporting this!
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

After looking at this closer, seems this is really a bug.
Also http://www.w3.org/TR/CSS21/selector.html#id-selectors seems to confirm that.
A fix has been made for handling these IDs so that a space is not inserted before the Hash element if there was no whitespace.
The fix will be placed in the next update.
ihrzauberer
Posts: 2
Joined: Mon Dec 31, 2007 10:13 am

Post by ihrzauberer »

I'm using Rapid CSS 8.3.0.30.

Using "Format CSS code..." insert a space between the value and the unit, i.e.:

Code: Select all

height: 30px;
font-size: 0.94em;
becomes:

Code: Select all

height: 30 px;
font-size: 0.94 em;
which breaks the validation of code.

Too, "Format CSS code..." removes all comments.

Both errors don't occurs if the switchs "Preserve original whitespace" and "Remove comments" are active = on.

Best regards
Ralf
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Post by daredare »

well this would mean that it isnt really a bug but the parser shouldn't add this white space as it has no real purpose :?:
i have never used this format css code feature, Maybe it's a good feature when beginning :?:
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

Thank you for reporting it. Indeed, there is such bug and we will fix it.
ihrzauberer
Posts: 2
Joined: Mon Dec 31, 2007 10:13 am

Post by ihrzauberer »

thank you =8-)

Best regards
Ralf
Post Reply