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

Bug 518485

Summary: Content of <pre> tags in javadoc gets destructed
Product: [Eclipse Project] JDT Reporter: Matthias Ronge <matthias.ronge>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard: stalebug

Description Matthias Ronge CLA 2017-06-20 03:39:06 EDT
Given a JAVA class with a Javadoc comment:

----
/**
 * An object representing a METS “file” entry. A “file” entry may, for
 * example, look like this:
 * <p>
 * <pre>
 * {@code
 * <mets:file ID="FILE_0001_DEFAULT" MIMETYPE="image/jpeg">
 *     <mets:FLocat LOCTYPE="URL" xlink:href="http://digital.example.org/filegroups/_000000/default/00000001.jpg" xmlns:xlink="http://www.w3.org/1999/xlink"/>
 * </mets:file>
 * }
 * </pre>
 */
public class FileEntry { /* ... */ }
----

When doing Source -> Format, the content inside the <pre></pre> tags is line-wapped:

----
/**
 * An object representing a METS “file” entry. A “file” entry may, for example,
 * look like this:
 * <p>
 * 
 * <pre>
 * {@code
 * <mets:file ID="FILE_0001_DEFAULT" MIMETYPE="image/jpeg">
 *     <mets:FLocat LOCTYPE="URL" xlink:href=
"http://digital.example.org/filegroups/_000000/default/00000001.jpg" xmlns:xlink
="http://www.w3.org/1999/xlink"/>
 * </mets:file>
 * }
 * </pre>
 */
public class FileEntry {
    /* ... */ }
----

I would expect that the content inside ‘pre’ tags is not reformatted. Also, I believe this didn’t happen in earlier versions. So I would like to report it as bug.

PS: I am not clear what the „product“ and „component“ values refer to. Please reclassify if necessary


-- Configuration Details --
Product: Eclipse 4.6.2.20161208-0625 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.jdt 3.12.2.v20161124-1400
Versioning Plugin:
 org.eclipse.platform 4.6.2.v20161124-1529
Comment 1 Sarika Sinha CLA 2017-06-20 05:07:48 EDT
Moving to JDT Core.
Comment 2 Eclipse Genie CLA 2020-04-05 15:32:47 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.