public static void cleanupParagraphs(RTEditText editor,Effect... exclude){
  cleanupParagraphs(editor,Effects.ALIGNMENT,exclude);
  cleanupParagraphs(editor,Effects.INDENTATION,exclude);
  cleanupParagraphs(editor,Effects.BULLET,exclude);
  cleanupParagraphs(editor,Effects.NUMBER,exclude);
}

public static void cleanupParagraphs ( RTEditText editor , Effect ... exclude ) { cleanupParagraphs ( editor , Effects . ALIGNMENT , exclude ) ; cleanupParagraphs ( editor , Effects . INDENTATION , exclude ) ; cleanupParagraphs ( editor , Effects . BULLET , exclude ) ; cleanupParagraphs ( editor , Effects . NUMBER , exclude ) ; }
this important method makes sure that all paragraph effects are applied to whole paragraphs . while it ' s optimized for performance it ' s still an expensive operation so it shouldn ' t be called too often .
