diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/hudson/Functions.java
+++ b/core/src/main/java/hudson/Functions.java
@@ -307,4 +307,8 @@ public class Functions {
     public static String getWin32ErrorMessage(IOException e) {
         return Util.getWin32ErrorMessage(e);
     }
+
+    public static boolean isMultiline(String s) {
+        return s.indexOf('\r')>=0 || s.indexOf('\n')>=0;
+    }
 }
added a method to detect multi-line string. Used in views.


git-svn-id: <URL>