You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2016/10/16 06:28:38 UTC
[3/3] git commit: [flex-falcon] [refs/heads/develop] - tidy up the
strings by eliminating extra whitespace
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/develop
Commit: 87fd5e0cd8f93e7c0bae4df93cebb8db45b7c545
Parents: 13b29e1
Author: Alex Harui <ah...@apache.org>
Authored: Thu Oct 13 21:53:53 2016 -0700
Committer: Alex Harui <ah...@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