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 200213 - <p/> inserted every time code-format is invoked
Summary: <p/> inserted every time code-format is invoked
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.1
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-18 18:25 UTC by _ gtzabari
Modified: 2011-07-27 14:09 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 _ gtzabari 2011-07-18 18:25:39 UTC
Product Version: NetBeans IDE Dev (Build 201107170600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

1. Given:

/**
 * @author Gili Tzabari
 */

2. Code-Format
3. Results in:

/**
 * <p/>
 * @author Gili Tzabari
 */

Every time you code-format, another <p/> is inserted.
Comment 1 Jiri Prox 2011-07-19 06:25:55 UTC
Reproducible with current trunk build (not in 7.0.1).

to developers:
Please fix it asap, this makes formatting code unusable
Thanks
Comment 2 _ gtzabari 2011-07-25 13:53:28 UTC
Issue 200176 claims this is fixed, but I can reproducible it in dev build 201107220600.

Dusan, can you please comment?

*** This bug has been marked as a duplicate of bug 200176 ***
Comment 3 _ gtzabari 2011-07-25 13:53:55 UTC
Oops, I didn't mean to close as duplicate.
Comment 4 _ gtzabari 2011-07-25 13:57:10 UTC
Workaround: Tools -> Editor -> Formatting -> Java -> Comments -> uncheck "Generate <p/> on blank lines"
Comment 5 Dusan Balek 2011-07-26 14:15:34 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/ee888118bd02
Comment 6 Quality Engineering 2011-07-27 14:09:14 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ee888118bd02
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #200213: <p/> inserted every time code-format is invoked - fixed.