[Pidgin] #10152: Chat topic may take up an arbitrary amount of space

Pidgin trac at pidgin.im
Tue Sep 1 23:06:38 EDT 2009


#10152: Chat topic may take up an arbitrary amount of space
----------------------+-----------------------------------------------------
 Reporter:  compm375  |        Owner:              
     Type:  defect    |       Status:  new         
Milestone:            |    Component:  pidgin (gtk)
  Version:  2.6.1     |   Resolution:              
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by compm375):

 Here is some debug from both versions

 This is in version 2.5.8 after a
 "/topic test
 1"
 The line break gets collapsed to a space.
 {{{
 (22:26:49) jabber: Sending: <message type='groupchat'
 to='****@******'><subject>test 1</subject></message>
 (22:26:50) jabber: Recv (143): <message type='groupchat'
 to='***@******/Home' from='****@******/***'><subject>test
 1</subject></message>
 }}}

 This is also version 2.5.8, but doing "/topic test<br>1"
 The BR tag gets turned into a line break.
 {{{
 (22:27:41) jabber: Sending: <message type='groupchat'
 to='****@******'><subject>test
 1</subject></message>
 (22:27:41) jabber: Recv (143): <message type='groupchat'
 to='***@******/Home' from='****@******/***'><subject>test
 1</subject></message>
 }}}

 This is version 2.6.1,
 "/topic test
 1"
 The line break stays a line break
 {{{
 (22:40:50) jabber: Sending: <message type='groupchat'
 to='****@******'><subject>test
 1</subject></message>
 (22:40:50) jabber: Recv (146): <message type='groupchat'
 to='***@******/Pidgin' from='****@******/***'><subject>test
 1</subject></message>
 }}}

 And here is 2.6.1, using the BR tag.  It gets escaped.  There is also a
 warning, which may be unrelated.
 {{{
 (22:41:53) jabber: Sending: <message type='groupchat'
 to='****@******'><subject>test<br>2</subject></message>
 (22:41:54) jabber: Recv (155): <message type='groupchat'
 to='***@******/Pidgin'
 from='****@******/***'><subject>test<br>2</subject></message>
 (22:41:54) jabber: xmlParseChunk returned warning 100
 }}}

 When a line break is sent in the raw XMPP, 2.6.1 displays it.  2.5.8 only
 shows the first line of the topic.  As previously mentioned, if the topic
 has many lines, 2.6.1 will display all of them, even expanding the window
 larger than the screen.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/10152#comment:4>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list