[dev] Fwd: [chora] text/plain driver unsuitable in most cases
Chuck Hagenbuch
chuck@horde.org
Mon, 22 Jul 2002 23:08:14 -0400
This message is in MIME format.
---------------------- multipart/mixed attachment
Michael, thoughts?
----- Forwarded message from neuhauser@bellavista.cz -----
Date: Mon, 22 Jul 2002 13:40:45 +0200
From: Roman Neuhauser <neuhauser@bellavista.cz>
Reply-To: Roman Neuhauser <neuhauser@bellavista.cz>
Subject: [chora] text/plain driver unsuitable in most cases
To: chora <chora@lists.horde.org>
Hi there,
I have this problem with Chora: files w/o extensions end up being
displayed using the plain viewer, which sets content-type: text/html.
That results in lines being wrapped. This looks like a bug, because
Makefiles, TODO files, etc. are displayed with lines wrapped.
It looks like pulling the text through
Text::toHTML(.., TEXT_HTML_NOHTML) fixes it, but i don't know if this is
the right fix. Use at your own risk.
--
FreeBSD 4.6-STABLE
1:24PM up 5 days, 23:43, 7 users, load averages: 0.02, 0.04, 0.01
----- End forwarded message -----
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"After a few minutes the most aromatic and nice smelling Italian coffee
will come out of the exhaustpipe." - Our stove-top espresso pot
---------------------- multipart/mixed attachment
Index: lib/MIME/Viewer/plain.php
===================================================================
RCS file: /repository/horde/lib/MIME/Viewer/plain.php,v
retrieving revision 1.1
diff -u -r1.1 plain.php
--- lib/MIME/Viewer/plain.php 8 Jul 2002 17:45:41 -0000 1.1
+++ lib/MIME/Viewer/plain.php 22 Jul 2002 11:37:17 -0000
@@ -21,8 +21,8 @@
function render()
{
include_once HORDE_BASE . '/lib/Text.php';
- return Text::enableCapitalLinks(Text::linkUrls($this->mime_part->getContents(),
- true));
+ return Text::toHTML(Text::enableCapitalLinks(Text::linkUrls($this->mime_part->getContents(),
+ true)), TEXT_HTML_NOHTML);
}
/**
---------------------- multipart/mixed attachment
--
Chora mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: chora-unsubscribe@lists.horde.org
---------------------- multipart/mixed attachment--