diff options
author | fbecker | 2009-05-06 19:49:36 +0000 |
---|---|---|
committer | fbecker | 2009-05-06 19:49:36 +0000 |
commit | e70d8332fc12f2e2d0ae79e35f7cd00d4068868d (patch) | |
tree | 9b289c35229e1901e628a8de46172331f193e650 | |
parent | 5ef851a7058ad0a46ededc79af8d3c8e30bcbe4e (diff) | |
download | org.eclipse.mylyn.tasks-e70d8332fc12f2e2d0ae79e35f7cd00d4068868d.tar.gz org.eclipse.mylyn.tasks-e70d8332fc12f2e2d0ae79e35f7cd00d4068868d.tar.xz org.eclipse.mylyn.tasks-e70d8332fc12f2e2d0ae79e35f7cd00d4068868d.zip |
ASSIGNED - bug 197539: [patch] comments in bugzilla 2.18 don't wrap
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197539
-rw-r--r-- | org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java index 7d0127a1d..9a1bacf66 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java @@ -1832,7 +1832,11 @@ public class BugzillaClient { spaceIndex = WRAP_LENGTH; } newText = newText + origText.substring(0, spaceIndex) + "\n"; //$NON-NLS-1$ - origText = origText.substring(spaceIndex + 1, origText.length()); + if (origText.charAt(spaceIndex) == ' ') { + origText = origText.substring(spaceIndex + 1, origText.length()); + } else { + origText = origText.substring(spaceIndex, origText.length()); + } } else { newText = newText + origText; origText = ""; //$NON-NLS-1$ |