From d15f60a7f359dc3d9eef186716bee96f71c4ba14 Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 3 May 2011 07:03:44 +0000 Subject: [PATCH] added newline and tab characters to line delimiters to enable renaming of variables that are in the beginning of a new line git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@20733 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java index 3f9459d8..de423013 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/VariableNameUtils.java @@ -74,7 +74,7 @@ public class VariableNameUtils { private static String replaceAllWords(String original, String find, String replacement) { if(!original.contains(find)) return original; StringBuilder result = new StringBuilder(original.length()); - String delimiters = "+-*/(){}[],.: "; + String delimiters = "+-*/(){}[],.: \t\n\r\f"; StringTokenizer st = new StringTokenizer(original, delimiters, true); while (st.hasMoreTokens()) { String w = st.nextToken(); -- 2.47.1