*** empty log message ***
authoridfx <idfx>
Wed, 6 Feb 2002 17:47:44 +0000 (17:47 +0000)
committeridfx <idfx>
Wed, 6 Feb 2002 17:47:44 +0000 (17:47 +0000)
source/mir/misc/StringUtil.java

index 191c011..a3c70da 100755 (executable)
@@ -930,9 +930,9 @@ public final class StringUtil {
       RE regex = new RE("((https://)|(http://)|(ftp://))+([a-zA-Z0-9_-]+).([a-zA-Z0-9_.:-]+)/?([^ \t\r\n<>]+[^ \t\r\n.,<>])");
       if (title != null) {
         title = removeHTMLTags(title);
-        return regex.substituteAll(haystack,"<img src=\"$0\" width=\""+width+"\" height=\""+height+"\" alt=\""+title+"\"/>&#160;<br><i>"+title+"</i>");
+        return regex.substituteAll(haystack,"<img hspace=\"10\" vspace=\"6\" align=\"left\" src=\"$0\" width=\""+width+"\" height=\""+height+"\" alt=\""+title+"\"/>&#160;<br><i>"+title+"</i>");
       } else {
-        return regex.substituteAll(haystack,"<img src=\"$0\" width=\""+width+"\" height=\""+height+"\" alt=\"\"/>&#160;");
+        return regex.substituteAll(haystack,"<img hspace=\"10\" vspace=\"6\" align=\"left\" src=\"$0\" width=\""+width+"\" height=\""+height+"\" alt=\"\"/>&#160;");
       } 
     } catch(REException ex){
       return null;