Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 22947 Details for
Bug 52921
[formatting] Javadoc formatting: extra newline with [pre]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Improved patch against JavadocRegion.java
JavaDocRegion.patch (text/plain), 1.22 KB, created by
Dani Megert
on 2005-06-13 13:30:19 EDT
(
hide
)
Description:
Improved patch against JavadocRegion.java
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2005-06-13 13:30:19 EDT
Size:
1.22 KB
patch
obsolete
>Index: JavaDocRegion.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/JavaDocRegion.java,v >retrieving revision 1.2 >diff -u -r1.2 JavaDocRegion.java >--- JavaDocRegion.java 28 Mar 2005 21:15:56 -0000 1.2 >+++ JavaDocRegion.java 13 Jun 2005 17:22:28 -0000 >@@ -197,10 +197,19 @@ > ILineTracker tracker= new DefaultLineTracker(); > String patch= indentation + MultiCommentLine.MULTI_COMMENT_CONTENT_PREFIX; > >+ // remove trailing spaces >+ int i= snippet.length(); >+ while (i > 0 && ' ' == snippet.charAt(i-1)) >+ i--; >+ snippet= snippet.substring(0, i); >+ > buffer.setLength(0); >- buffer.append(getDelimiter()); >+ String lineDelimiter= getDelimiter(); >+ if (lineDelimiter != null && snippet.indexOf(lineDelimiter) != 0) >+ buffer.append(lineDelimiter); > buffer.append(convertJava2Html(snippet)); >- buffer.append(getDelimiter()); >+ if (lineDelimiter != null && snippet.lastIndexOf(lineDelimiter) != snippet.length() - lineDelimiter.length()) >+ buffer.append(lineDelimiter); > tracker.set(buffer.toString()); > > for (int line= tracker.getNumberOfLines() - 1; line > 0; line--)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52921
:
22936
| 22947 |
22948