Menu

#5 Keep comments from CSS-files

Next_Release
open
nobody
None
1
2017-09-14
2017-09-14
No

Hey, when i do some thing like

InputSource source = new InputSource(new StringReader(cssString));
CSSOMParser parser = new CSSOMParser(new SACParserCSS3());
CSSStyleSheetImpl sheet = (CSSStyleSheetImpl) parser.parseStyleSheet(source, null, null);
String printCss = sheet.getCssText(new CSSFormat());

all comments from this original css are removed.
Maybe you could provide a option via CSSFormat class.
Thank you in advance

Discussion

Anonymous
Anonymous

Add attachments
Cancel