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 222916 - Comment reformatting does not respect HTML list items <li>
Summary: Comment reformatting does not respect HTML list items <li>
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-28 17:56 UTC by _ gtzabari
Modified: 2013-02-12 09:20 UTC (History)
1 user (show)

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 2012-11-28 17:56:29 UTC
Given:

1. Given:

/**
 * Loads the parent resources.
 * 
 * The resource loading operation proceeds in three phases:
 * <ol>
 * <li>The URL is resolved into resource classes</li>
 * <li>The transaction isolation level is set to a value acceptable to all resources</li>
 * <li>The resources are loaded from the database from parent to child</li>
 * <ol>
 * @param <T> functionality exposed by parent resources
 * @author Gili Tzabari
 */

2. Netbeans reformats this as:

/**
 * Loads the parent resources.
 * <p/>
 * The resource loading operation proceeds in three phases: <ol> <li>The URL is resolved into
 * resource classes</li> <li>The transaction isolation level is set to a value acceptable to all
 * resources</li> <li>The resources are loaded from the database from parent to child</li> <ol>
 * <p/>
 * @param <T> functionality exposed by parent resources
 * @author Gili Tzabari
 */

making it difficult to read.

Expected behavior: If <li> is found at the beginning of a line, it should not  be moved into the above line. </li> is optional and should not be assumed to exist.
Comment 1 _ gtzabari 2012-11-28 17:58:48 UTC
PS: This bug does not occur if "wrap text at right margin" is disabled.
Comment 2 Dusan Balek 2012-11-29 13:18:28 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/cb0c55798d36
Comment 3 Quality Engineering 2012-11-30 02:44:37 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cb0c55798d36
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #222916: Comment reformatting does not respect HTML list items - fixed.