[Pidgin] #1533: html log loses newlines
Pidgin
trac at pidgin.im
Mon Jun 4 18:11:31 EDT 2007
#1533: html log loses newlines
------------------------------+---------------------------------------------
Reporter: himdel | Type: patch
Status: new | Priority: minor
Component: libpurple | Version: 2.0.1
Keywords: log html newline | Pending: 0
------------------------------+---------------------------------------------
For AIM multiline messages, the log file in .html doesn't have the message
body in <pre> tags nor does it have <br />'s added to every line of the
body. So it's shown badly in history, log viewer and browsers.
This patch (hopefully) fixes that by doing s#\n#<br />\n#sg.
Why I say hopefully: jabber messages already come in html with newlines as
<br /> and without the actual \n's so it works fine. But I don't know
about other protocols and maybe the unifications of format of inputs from
the various protocols should be done sooner than in the log.
Still, this is less broken than the current implementation.
--
Ticket URL: <http://developer.pidgin.im/ticket/1533>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list