Menu

#2 Feature Request: output formatting

Next_Release
closed
RBRi
None
1
2015-12-17
2015-09-29
Ed Murphy
No

It would be valuable to have more control over the formatting the css. My use case, detailed below, is to be able to remove the universal selector from each selector during output. It would also be useful to use output formatting to do pretty printing or to remove any extra whitespace. It would also be useful, in the context of showing css on an html page, to add the necessary markup to do syntax highlighting.

Use case: I'm processing css files to pull out the inlined images (background-image: dataurl()) into a separate file so it can be loaded on document ready. The input is one css file, the output is two css files, one with the background-images and the other without. the default formatting prepends all selectors with the universal selector (). I would like to remove the universal selector; it creates warings when doing css linting. If I had control of the output, I could remove the universal selector when creating the output files.

for example, where the current output is
*.foo { background-image: url(/images/foo.svg) }
i would like to output
.foo { background-image: url(/images/foo.svg) }

Discussion

  • RBRi

    RBRi - 2015-09-29
    • status: open --> accepted
    • assigned_to: RBRi
     
  • RBRi

    RBRi - 2015-10-03

    just made an new snapshot build available. Please try if this works for you

     
  • RBRi

    RBRi - 2015-10-15

    Please try with the latest snapshot.

     
  • RBRi

    RBRi - 2015-10-15
    • status: accepted --> pending
     
  • RBRi

    RBRi - 2015-10-15
    • labels: formatting -->
     
  • RBRi

    RBRi - 2015-10-27

    fixed in 0.9.18

     
  • RBRi

    RBRi - 2015-12-17
    • status: pending --> closed
     
  • RBRi

    RBRi - 2015-12-17

    Output formating is available; time to close this.
    Please open a new issue if you need more formatting options.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.