Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Punctuation in /* comment's */ breaks code #6

Closed
Hlight opened this issue Jun 23, 2011 · 4 comments
Closed

Punctuation in /* comment's */ breaks code #6

Hlight opened this issue Jun 23, 2011 · 4 comments

Comments

@Hlight
Copy link

Hlight commented Jun 23, 2011

I was having problems with importing certain style sheets with css crush. After testing I found the culprit to be punctuation in css comments. If there is any punctuation at all in the comments it seems to break the code.

@peteboere
Copy link
Owner

Thanks, would be helpful if you could post an example of the code that is causing the issue so I can test it locally

@Hlight
Copy link
Author

Hlight commented Jun 27, 2011

Okay, here is an example: (update: only single quotation marks are causing problems)

/* comments with single quotes break css_crush */ <- WORKS (notice no single quotes in string)

/* comment's with single quotes break css_crush */ <- BREAKS (page freezes when css_crush processes css file)

/* comment's with single quote's break css_crush */ <- WORKS! (b/c there are two single quotation marks thus php is interpreting the single quotes as normal php "opening" & "closing" tags for a string).

Hope this helps, seems that the comments strings need to be escaped before they are processed further in the code.

I keep having problems with the page freezing up whenever I add css that contains comments with single quotes. Tested this pretty thoroughly. BTW, thanks for making this I'm diggin css_crush ;)

@peteboere
Copy link
Owner

This issue is now resolved

@Hlight
Copy link
Author

Hlight commented Jul 14, 2011

Awesome! thank you so much.

On Thu, Jul 14, 2011 at 5:54 AM, peteboere <
reply@reply.github.com>wrote:

This issue is now resolved

Reply to this email directly or view it on GitHub:
#6 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants