Bug 76438 - blank lines added after <pre> tag in Javadoc on each reformat
Summary: blank lines added after <pre> tag in Javadoc on each reformat
Status: RESOLVED DUPLICATE of bug 52921
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-17 06:43 EDT by R.W. Shore CLA
Modified: 2004-10-18 05:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R.W. Shore CLA 2004-10-17 06:43:53 EDT
Eclipse Platform: Version: 3.1.0
Build id: 200409240800
OS: WinXP + SP2
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

My Java code formatting prefs have "enable comment formatting", "format HTLM
tags", and "format Java code snippets" checked on the "Comments" tab. "Blank
line...", "Indent Javadoc...", "Indent description..." and "New line..." are
also checked. Max line width for comments is 80. 

Whenever I run the reformatter (typically via the ctl-shift-F key sequence), any
<pre> tag in a method Javadoc comment gets a new blank line added after the
<pre>; a second line gets added before the </pre>. Thus the number of blank
lines in the <pre> block grows by two each time I run the code reformatter. I
don't see any preference that appears to control this behavior. It's not a major
problem, but it's a minor PITA to go back and remove these spurious blank lines
occasionally.
Comment 1 Tobias Widmer CLA 2004-10-18 04:48:43 EDT
What do you mean by occasionally? Is the error reproducible? Can you provide 
an example?
Comment 2 Dani Megert CLA 2004-10-18 05:05:00 EDT

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