This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 161208 - HtmlRenderer does not handle nested <b> tags
Summary: HtmlRenderer does not handle nested <b> tags
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
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
Exception Reporter:


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.