[Pidgin] #7814: xmlnode_from_str reads in extraneous detail from formatted XML files, makes xmlnode_to_formatted_str unhappy

Pidgin trac at pidgin.im
Wed Dec 17 13:11:23 EST 2008


#7814: xmlnode_from_str reads in extraneous detail from formatted XML files, makes
xmlnode_to_formatted_str unhappy
-----------------------+----------------------------------------------------
Reporter:  darkrain42  |        Type:  defect                  
  Status:  new         |   Component:  libpurple               
 Version:  2.5.2       |    Keywords:  xmlnode, xml, formatting
-----------------------+----------------------------------------------------
 Based on conversations with htrejh in #pidgin, xmlnode_from_str does bad
 things when reading data from a formatted file. It treats the newline + 8
 spaces as CDATA of the root tag (and for all the others, too). This is
 typically not a problem because most of the libpurple code reads the
 xmlnodes into some struct.

 Anyway, this causes xmlnode_to_formatted_str to revert to a mode where it
 doesn't format any of the children (xmlnode.c:495 in my copy, I think is
 i.p.p head).

 The output from http://pastebin.be/15493 ends up looking like
 http://pastebin.be/15498 (note the unformatted block at the end) when it
 actually reads data from the file. It looks "right" if there were no
 contents of the file.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/7814>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list