Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 161208 - HtmlRenderer does not handle nested <b> tags
HtmlRenderer does not handle nested <b> tags
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
All All
: P4 (vote)
Assigned To: issues@platform
Depends on:
  Show dependency treegraph
Reported: 2009-03-26 00:31 UTC by Jesse Glick
Modified: 2009-03-26 00:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-03-26 00:31:59 UTC
Observed in NB-Core-Build #2344 log for php.editor C/V:

WARNING: Closing bold tag w/o opening bold tag
WARNING:   <font color=#00007c><b><b>$GLOBALS</b></b></font>
WARNING:                                          ^
WARNING:  Full HTML string:<font color=#00007c><b><b>$GLOBALS</b></b></font>

I guess

        boolean bold = false; //flag if text is currently bold

should be

        int bold; // count of nested <b> tags, text is bold if >0

BTW the comment

                    // bug, issue 38372 - log messages containing
                    //newlines are truncated - so for now we iterate the
                    //string we've just constructed

is probably obsolete. AFAIK it is fine to use java.util.logging with a multiline message. It is also odd that there is

    private static Logger LOG = Logger.getLogger(HtmlRenderer.class.getName());

yet the name HtmlRenderer does not appear in the log as you would expect.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo