[Pidgin] #2653: GntTextView Log Parsing
Pidgin
trac at pidgin.im
Mon Aug 20 17:11:47 EDT 2007
#2653: GntTextView Log Parsing
---------------------------------+------------------------------------------
Reporter: aluink | Owner: aluink
Type: defect | Status: new
Priority: minor | Milestone:
Component: finch (gnt/ncurses) | Version: 2.1.0
Keywords: html parsing | Pending: 0
---------------------------------+------------------------------------------
The current log HTML format has embedded <html> tags which causes the
HTMLParser to parse it improperly.
{{{
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Conversation with user at gmail.com at Sun Jun 3 14:58:54 2007 on
aluink at gmail.com/Gaim (jabber)</title>
</head>
<body>
<h3>Conversation with user at gmail.com at Sun Jun 3 14:58:54 2007 on
aluink at gmail.com/Gaim (jabber)</h3>
<font color="#A82F2F">
<font size="2">(14:58:54)</font>
<b>user at gmail.com:</b>
</font>
<html xmlns='http://jabber.org/protocol/xhtml-im'>
<body xmlns='http://www.w3.org/1999/xhtml'>Some message from user
</body>
</html><br/>
<font color="#16569E">
<font size="2">(15:03:19)</font>
<b>aluink:</b>
</font> Some more stuff from me<br/>
</body>
</html>
}}}
The HTML has been formatted a bit to help in reading, but the point
remains. You can see how there is an HTML tag inside. This could
probably be solved with a simple XML parser instead of an HTML parser.
--
Ticket URL: <http://developer.pidgin.im/ticket/2653>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list