Skip navigation
1067 Views 1 Reply Latest reply: Feb 7, 2011 4:48 PM by rcollier RSS
Flow KeyContributor 612 posts since
Jan 11, 2007
Currently Being Moderated

Feb 7, 2011 8:43 AM

smack XHTMLText.appendBrTag() appends incorrect tag format

http://fisheye.igniterealtime.org/browse/smack/trunk/source/org/jivesoftware/sma ckx/XHTMLText.java?r=7071#l133 shows that smack appends "<br>" where it should "<br/>" as postulated by XEP-71.

 

ATM I have to

                String xhtmlBody = message.generateXHTMLText().toString();
                xhtmlBody = xhtmlBody.replace("<br>", "<br/>");  //fix for smackx problem
                XHTMLManager.addBody(msg, xhtmlBody);

                String xhtmlBody = message.generateXHTMLText().toString();

                xhtmlBody = xhtmlBody.replace("<br>", "<br/>");  //fix for smackx problem

                XHTMLManager.addBody(msg, xhtmlBody);

to workaround this Bug.

 

Flow

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points