From 35f9418117c2fc0403073f0c54a425899eea97ee Mon Sep 17 00:00:00 2001 From: low012 Date: Mon, 8 May 2006 14:23:22 +0000 Subject: [PATCH] Fixed links and images. (http://www.yacy-forum.de/viewtopic.php?p=20908#20908) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2070 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/data/wikiCode.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/data/wikiCode.java b/source/de/anomic/data/wikiCode.java index 7e34669ee..1c0653d6e 100644 --- a/source/de/anomic/data/wikiCode.java +++ b/source/de/anomic/data/wikiCode.java @@ -690,7 +690,7 @@ public class wikiCode { // are there any arguments for the image? if ((p = kl.indexOf("|")) > 0) { - kv = kl.substring(p + 1); + kv = kl.substring(p + 6); kl = kl.substring(0, p); // if there are 2 arguments, write them into ALIGN and ALT if ((p = kv.indexOf("|")) > 0) { @@ -707,7 +707,7 @@ public class wikiCode { align = " align=\"" + align + "\""; } else align = ""; - alt = " alt=\"" + kv.substring(p + 1) + "\""; + alt = " alt=\"" + kv.substring(p + 6) + "\""; } // if there is just one, put it into ALT else @@ -730,7 +730,7 @@ public class wikiCode { // if it's no image, it might be an internal link else { if ((p = kl.indexOf("|")) > 0) { - kv = kl.substring(p + 1); + kv = kl.substring(p + 6); kl = kl.substring(0, p); } else { kv = kl;