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 .