Code formatting in Plain Text mode


I noticed a couple of odd things when I tried to post some code in this discussion. If you try to paste the toXML() method from the attached .java file into the Plain Text composition area you’ll notice the getElement() portion of the method gets dropped, even if you use the tag.

I tried this with both Safari and Firefox and got the same results.



Trying it with

private void sendBuzz() {
      Message buzz = new Message();
      buzz.addExtension(new PacketExtension() {
         public String getElementName() {
            return "buzz";
         }          public String getNamespace() {
            return "";
         }          public String toXML() {
            return "<" + getElementName() + " xmlns=\"" + getNamespace() + "\"/>" ;

yeah, no better. I’ll look into it - I’m guessing it’s a bug in the conversion between the wiki text and rendering it for display.

It’s good to see that I’m not the only one. Thanks for looking into this.

Yep, it’s a bug in Clearspace. We’ve filed it.