partly fixed snippets

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3224 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 18 years ago
parent b4457763e5
commit 8803f813c5

@ -63,7 +63,7 @@ public class snippet {
prop.put("status",snippet.getSource());
if (snippet.getSource() < 11) {
//prop.put("text", (snippet.exists()) ? snippet.getLineMarked(queryHashes) : "unknown");
prop.put("text", (snippet.exists()) ? "<![CDATA["+snippet.getLineMarked(queryHashes)+"]]>" : "unknown");
prop.put("text", (snippet.exists()) ? snippet.getLineMarked(queryHashes) : "unknown");
} else {
String error = snippet.getError();
if ((remove) && (error.equals("no matching snippet found"))) {

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<snippet>
<text>#[text]#</text>
<text><![CDATA[#[text]#]]></text>
<status>#[status]#</status>
<urlHash>#[urlHash]#</urlHash>
<links>#[links]#</links>
@ -12,4 +12,4 @@
<attr>#[attr]#</attr>
</link>
#{/link}#
</snippet>
</snippet>

Loading…
Cancel
Save