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

Summary: HtmlRenderer does not handle nested <b> tags
Product: platform Reporter: Jesse Glick <jglick>
Component: -- Other --Assignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.