Menu

#27 css is not output in HTMLFormatter's html() method

open
nobody
5
2011-05-29
2011-05-29
Anonymous
No

The javadoc of HTMLFormattter's html() method states that it also outputs the css, but it's not doing that. Examination of the code reveals that there's a typo in the test:

String css = css(cloud);
if (css != null && css.length() == 0) {
html += "<style>\n" + css + "</style>\n";
}

I believe that should be:
if (css != null && css.length() != 0) {

(I'm using v 0.2)

Discussion


Log in to post a comment.