Skip to content

Striping comments #56

Open
Open
@zz9pzza

Description

@zz9pzza

Is it possible to configure the gem not to strip comments ?

1.9.3-p448 :001 > parser = CssParser::Parser.new
=>
1.9.3-p448 :002 > parser.add_block!("
1.9.3-p448 :003"> /* my css /
1.9.3-p448 :004"> body { /
hello world */
1.9.3-p448 :005"> background: yellow;
1.9.3-p448 :006"> }")
=> nil
1.9.3-p448 :007 > parser.each_rule_set do |rs|
1.9.3-p448 :008 > puts rs
1.9.3-p448 :009?> end
body { background: yellow; }
=> [{:media_types=>[:all], :rules=>body { background: yellow; }}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions