flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [35/44] git commit: [flex-falcon] [refs/heads/feature-autobuild/maven-archetypes] - tidy up the strings by eliminating extra whitespace
Date Fri, 21 Oct 2016 15:17:13 GMT
tidy up the strings by eliminating extra whitespace


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/87fd5e0c
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/87fd5e0c
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/87fd5e0c

Branch: refs/heads/feature-autobuild/maven-archetypes
Commit: 87fd5e0cd8f93e7c0bae4df93cebb8db45b7c545
Parents: 13b29e1
Author: Alex Harui <aharui@apache.org>
Authored: Thu Oct 13 21:53:53 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sat Oct 15 23:27:57 2016 -0700

----------------------------------------------------------------------
 .../org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/87fd5e0c/compiler-jx/src/main/java/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java
index e5064b1..b8e97d3 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/asdoc/flexjs/ASDocComment.java
@@ -89,7 +89,7 @@ public class ASDocComment implements IASDocComment
         		lines[0] = lines[0].substring(0, c);
         }
         // clip off asdoc slash-star-star
-        sb.append(lines[0].substring(3));
+        sb.append(lines[0].substring(3).trim());
         for (int i = 1; i < n - 1; i++)
         {
             String line = lines[i];
@@ -99,7 +99,7 @@ public class ASDocComment implements IASDocComment
             {
 	            sb.append(" ");
 	            if (star > -1)
-	                sb.append(line.substring(star + 1));
+	                sb.append(line.substring(star + 1).trim());
             }
             else
             {
@@ -124,7 +124,7 @@ public class ASDocComment implements IASDocComment
             	}            		
             }
         }
-        description = sb.toString();
+        description = sb.toString().trim().replace("\"", "\\\"");
     }
 
     @Override


Mime
View raw message