1 Reply Latest reply on Feb 7, 2011 4:48 PM by rcollier

    smack XHTMLText.appendBrTag() appends incorrect tag format

    Flow KeyContributor

      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