commit | 58e86f7a9c8af90f51eee0f80f52673bf6a19b07 | [log] [tgz] |
---|---|---|
author | Alex Ruiz <alruiz@google.com> | Thu Sep 22 15:20:58 2011 -0700 |
committer | Alex Ruiz <alruiz@google.com> | Thu Sep 22 15:20:58 2011 -0700 |
tree | 161c047b4176402c3cb25e9d6dc8a0ac548a1780 | |
parent | 0ee0274fd9210910a1d9aee9ebde410f6261a73a [diff] |
Fixed: [Issue 117] Import cannot "Ctrl+Click" file with space between last quote and the semicolon
diff --git a/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/conversion/STRINGValueConverter.java b/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/conversion/STRINGValueConverter.java index 63c5f96..ae23a29 100644 --- a/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/conversion/STRINGValueConverter.java +++ b/com.google.eclipse.protobuf/src/com/google/eclipse/protobuf/conversion/STRINGValueConverter.java
@@ -41,7 +41,7 @@ public String toValue(String string, INode node) throws ValueConverterException { if (string == null) return null; try { - String clean = removeLineBreaksFrom(string); + String clean = removeLineBreaksFrom(string).trim(); return convertToJavaString(clean.substring(1, clean.length() - 1), true); } catch (IllegalArgumentException e) { throw parsingError(string, node, e);