Sorry, this was a copy paste error.

The correct issue is of course UIMA-2338.

Best,

Peter
On 06.08.2012 14:08, [email protected] wrote:
Author: pkluegl
Date: Mon Aug  6 12:08:25 2012
New Revision: 1369805

URL: http://svn.apache.org/viewvc?rev=1369805&view=rev
Log:
UIMA-2241
- removed new lines in comments and added them again conditionally

Modified:
     
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/formatter/TextMarkerFormattedPrinter.java

Modified: 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/formatter/TextMarkerFormattedPrinter.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/formatter/TextMarkerFormattedPrinter.java?rev=1369805&r1=1369804&r2=1369805&view=diff
==============================================================================
--- 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/formatter/TextMarkerFormattedPrinter.java
 (original)
+++ 
uima/sandbox/trunk/TextMarker/uimaj-ep-textmarker-ide/src/main/java/org/apache/uima/textmarker/ide/formatter/TextMarkerFormattedPrinter.java
 Mon Aug  6 12:08:25 2012
@@ -281,6 +281,8 @@ public class TextMarkerFormattedPrinter
          }
          commentLineSince = 0;
        }
+    } else if(inBlockDeclaration || s instanceof CommonToken){
+      appendNewLine();
      }
      lastStatements.put(indentLevel, s);
    }
@@ -768,9 +770,9 @@ public class TextMarkerFormattedPrinter
     */
    private int appendComments(int start) {
      while (currentComment != null&&  currentComment.getStartIndex()<  start) {
-      String text = currentComment.getText();
+      String text = currentComment.getText().trim();
        fillNewLines(currentComment);
-      append(" " + text);
+      append("" + text);
        currentComment = iterator.hasNext() ? iterator.next() : null;
        commentLineSince++;
      }


--
---------------------------------------------------------------------
Dipl.-Inf. Peter Klügl
Universität Würzburg        Tel.: +49-(0)931-31-86741
Am Hubland                  Fax.: +49-(0)931-31-86732
97074 Würzburg              mail: [email protected]
     http://www.is.informatik.uni-wuerzburg.de/en/staff/kluegl_peter/
---------------------------------------------------------------------

Reply via email to