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 60831

Summary: Description of custom folds may contain extra strings
Product: editor Reporter: Roman Strobl <rstrobl>
Component: Code foldingAssignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Roman Strobl 2005-07-11 09:35:25 UTC
[NetBeans 200507061800; WinXP; JDK 1.5.0_04]

Custom folds with this order of attributes:

// <editor-fold desc="Start of auto generated elements" defaultstate="collapsed"> 

generate incorrect description:

Start of auto generated elements" defaultstate="collapsed

Note the second attribute is contained in the fold description as well.

The other order of attributes:

// <editor-fold defaultstate="collapsed" desc="Start of auto generated elements">

works correctly.
Comment 1 Vitezslav Stejskal 2007-04-16 05:40:45 UTC
Reproducible in a trunk build.
Comment 2 Vitezslav Stejskal 2007-04-27 05:14:00 UTC
Checking in CustomFoldManager.java;
/cvs/editor/libsrc/org/netbeans/editor/CustomFoldManager.java,v  <-- 
CustomFoldManager.java
new revision: 1.9; previous revision: 1.8
done