Menu

#4 Feature Request: output formatting

Next_Release
closed
RBRi
None
1
2016-05-12
2016-05-12
Tim A
No

Hey,

it would be nice if you could provide more output formatting options.

I m reading the following css properties from a file for example:

.MobileBody { 
    margin: 0px; 
    padding: 0px; 
    border-width: 0px; 
    background-color: #f5f9fc;
    overflow: auto
}

Now at my program I change some properties and need to export it to a new file. The output is the following:

.MobileBody { margin: 0px; padding: 0px; border-width: 0px; background-color: #f5f9fc; overflow: auto }

So each class selector with their css properties in 1 line. But i want to keep the indentations see below.

Like:
CSSSelector {
CSSProperty
..
..
..
}

Could you provide this output format option please?

Greets Tim

Discussion

  • RBRi

    RBRi - 2016-05-12

    Hi Tim,

    did a qick hack to support your request.
    You can download a new build at https://wetator.ci.cloudbees.com/ or use the latest snapshot.

    Please have a look. Does it solve your problem?

     
  • RBRi

    RBRi - 2016-05-12
    • status: open --> pending
    • assigned_to: RBRi
     
  • Tim A

    Tim A - 2016-05-12

    Hi, thanks for the fast support :) The code looks good. But i want to test it quickly.

    The maven dependency to the latest snapshot fails.

    Following dependency:

        <groupId>net.sourceforge.cssparser</groupId>
        <artifactId>cssparser</artifactId>
        <version>0.9.19-SNAPSHOT</version>
    

    I used version 0.9.18 before.
    Which version I need to use for my maven project?

     
  • RBRi

    RBRi - 2016-05-12

    your maven setup looks correct.
    Maybe you have to add the sonatyle snapshot repository to your pom

     
  • Tim A

    Tim A - 2016-05-12

    I inserted the the sonatyle repository to my settings file. Now it works fine.

    The feature is working perfectly. It's nice that I can setup the indent level now.

    Thanks for the fast support!

     
  • RBRi

    RBRi - 2016-05-12

    You are welcome,
    enjoy using CSSParser.

     
  • RBRi

    RBRi - 2016-05-12
    • status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB