From 285936d778e20371ce210236bdc3b28b85e10c38 Mon Sep 17 00:00:00 2001 From: theli Date: Mon, 23 May 2005 08:24:15 +0000 Subject: [PATCH] *) trying to set document title properly git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@153 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/parser/rtf/rtfParser.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/plasma/parser/rtf/rtfParser.java b/source/de/anomic/plasma/parser/rtf/rtfParser.java index bdde6de98..329605cce 100644 --- a/source/de/anomic/plasma/parser/rtf/rtfParser.java +++ b/source/de/anomic/plasma/parser/rtf/rtfParser.java @@ -95,7 +95,11 @@ implements Parser { location, mimeType, null, - null, + ((bodyText.length() > 80)? bodyText.substring(0, 80):bodyText.trim()). + replaceAll("\r\n"," "). + replaceAll("\n"," "). + replaceAll("\r"," "). + replaceAll("\t"," "), null, null, null,