Skip to content

Commit cba8c41

Browse files
authored
Fix non-functional --printCSS/-p option
This option didn't do anything, because the value it set (showCSS) wasn't considered when generating the output.
1 parent 9325825 commit cba8c41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

org/w3c/css/css/StyleSheetGenerator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ public StyleSheetGenerator(ApplContext ac, String title, StyleSheet style,
197197

198198
produceError();
199199
produceWarning();
200-
produceStyleSheet();
200+
if (CssValidator.showCSS)
201+
produceStyleSheet();
201202

202203
try {
203204
String _template_dir = "org/w3c/css/css/";

0 commit comments

Comments
 (0)