Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 64293

Summary: [templates] Indentation fails with multiline Javadoc templates
Product: [Eclipse Project] JDT Reporter: Nils Winkler <eclipse>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Nils Winkler CLA 2004-05-27 04:31:30 EDT
Eclipse 3.0M9, Windows NT 4.0, JDK 1.4.2_04

I created a Javadoc template called "ul" with the following form:

<ul>
<li>${cursor}
<li>
</ul>

When having a comment like the following:

    /**
     * List:
     *
     */

and adding the template like this:

    /**
     * List:
     * ul|
     */

the result looks like this:

    /**
     * List:
     * <ul>
<li>
<li>
</ul>
     */

whereas it should clearly look like this:

    /**
     * List:
     * <ul>
     * <li>
     * <li>
     * </ul>
     */

Adding asterisks to the template only works partially, since the indentation is 
still wrong after inserting the template. The "Use code formatter" checkbox has 
been selected, BTW.
Comment 1 Tom Hofmann CLA 2006-01-20 12:30:14 EST

*** This bug has been marked as a duplicate of 36381 ***