dcorking / wave-robot-java-client

Automatically exported from code.google.com/p/wave-robot-java-client
0 stars 0 forks source link

TextViewImpl.appendStyledText inserts unneded '\n' #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Following piece of in the method seems to be wrong.

    String text = styledText.getText();
    if (!text.endsWith("\n")) {
      text = text.concat("\n");
    }

In general, I think appendStyledText should be implemented by call to
inserStyledText (), otherwise it is tricky to keep these two methods consistent

Original issue reported on code.google.com by alex.tka...@gmail.com on 21 Jul 2009 at 9:27