Bug 96696 - [formatting] Should not remove blank lines in front of non-alphanumeric start of line in non-javadoc comments
Summary: [formatting] Should not remove blank lines in front of non-alphanumeric start...
Status: VERIFIED DUPLICATE of bug 239130
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P5 minor (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 16:17 EDT by Christopher Oezbek CLA
Modified: 2008-12-09 14:08 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Oezbek CLA 2005-05-25 16:17:19 EDT
This problem can be found when writing non-javadoc comments using the following 
settings:

  * Everything disabled but comment formatting.

The following comment 

/*
 * Conceptually, all viewers perform two primary tasks:
 *  
 * - They help adapt your domain objects into viewable entities
 * 
 * - They provide notifications when the viewable entities are selected or
 * changed through the UI
 */

is formatted into (upon CTRL+SHIFT+F)

/*
 * Conceptually, all viewers perform two primary tasks:
 *  - They help adapt your domain objects into viewable entities
 *  - They provide notifications when the viewable entities are selected or
 * changed through the UI
 */

which is formatted into (upon CTRL+SHIFT+F)

/*
 * Conceptually, all viewers perform two primary tasks: - They help adapt your
 * domain objects into viewable entities - They provide notifications when the
 * viewable entities are selected or changed through the UI
 */

----

The expected behavior can be seen when replacing the - with an o:

/*
 * Conceptually, all viewers perform two primary tasks:
 * 
 * o They help adapt your domain objects into viewable entities
 * 
 * o They provide notifications when the viewable entities are selected or
 * changed through the UI
 */

Stays without being changed.

Thanks for your great work, Eclipse Team!
Comment 1 Dani Megert CLA 2005-05-25 16:30:09 EDT
Is it just that case or would you rather see that you can disable formatting for
traditional and single line comments?
Comment 2 Christopher Oezbek CLA 2005-05-25 16:43:39 EDT
I think the formatter is very useful to break at 80 characters, that is why I 
leave it enabled.

Using something like a bullet point * or - in a kind of Wiki-syntax is more 
readable in source code than <li> <ul> <p>. 
Comment 3 Dani Megert CLA 2005-05-25 17:19:05 EDT
.
Comment 4 Dani Megert CLA 2005-10-10 12:17:16 EDT
Ownership changed.
Comment 5 Olivier Thomann CLA 2007-06-21 12:04:24 EDT
Block comment formatting can now be disabled.
Is this good enough?
Comment 6 Christopher Oezbek CLA 2007-06-22 09:15:31 EDT
Hi Olivier,
  I would prefer, if instead of just switching comment formatting for non-javadoc comments on and off, one could specify more precisely whether the formatter should...

  a.) ...just indent but preserve newlines

  b.) ...break at 80 characters.

Thanks,
  Christopher
Comment 7 Frederic Fusier CLA 2008-12-03 07:16:28 EST

*** This bug has been marked as a duplicate of bug 239130 ***
Comment 8 Kent Johnson CLA 2008-12-09 14:08:16 EST
Verified for 3.5M4 using I20081209-0100