| Summary: | [formatter] format does not work on package-info javadoc | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | David Koski <david_koski> |
| Component: | Core | Assignee: | Eric Jodet <eric_jodet> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | frederic_fusier |
| Version: | 3.3 | ||
| Target Milestone: | --- | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
David Koski
What is your setting for formatting headers ? (In reply to comment #1) > What is your setting for formatting headers ? > They are: Comments: Enable Javadoc comment formatting Enable block / line comment formatting Javadoc: Format html tags Format java code snippets Blank lines before javadoc Indent javadoc tags In a normal javadoc comment, if I type this: /** * Super long line. * * <pre> paste some code in here * </pre> */ and I reformat it, it will turn into: /** * Super long * line. * * <pre> * paste some code in here * </pre> */ (In reply to comment #1) > What is your setting for formatting headers ? > This question might be of importance: on the comment formatter preference page, the "enable header comment formatting" option is disabled by default. If you enable it, then the javadoc comments in a package-info file seems to be formatted as expected. With this option enabled, I tried to format the javadoc comment I inserted in a package-info file: /** * @author ejd * @since 3.2 * @version 1.1 */ package test; This gave: /** * @author ejd * @since 3.2 * @version 1.1 */ package test; which sounds correct to me. Would close as WORKSFORME. *** This bug has been marked as a duplicate of bug 113946 *** |