Bug 161208 - HtmlRenderer does not handle nested <b> tags
HtmlRenderer does not handle nested <b> tags
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
6.x
All All
: P4 (vote)
: TBD
Assigned To: issues@platform
issues@platform
:
Depends on:
Blocks:
  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
:


Attachments

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. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo