| Author | DaveJarvis <email> |
|---|---|
| Date | 2020-06-20 22:17:20 GMT-0700 |
| Commit | 2c933a4066aa91bb68dd5263b16ad588860c1790 |
| Parent | 8913f62 |
| Delta | 4 lines added, 5 lines removed, 1-line decrease |
| while( i < paraIndex ) { | ||
| + // Reduce numerously nested blockquotes to blanks for isBlank call. | ||
| final String text = editor.getParagraph( i++ ) | ||
| .getText() | ||
| .replace( '>', ' ' ); | ||
| - paragraphs += text.isEmpty() ? 0 : 1; | ||
| + paragraphs += text.isBlank() ? 0 : 1; | ||
| } | ||
| */ | ||
| private String getDiacriticlessValue() { | ||
| - final String value = getValue().toString(); | ||
| - final String normalized = Normalizer.normalize( value, NFD ); | ||
| - | ||
| - return normalized.replaceAll( "\\p{M}", "" ); | ||
| + return Normalizer.normalize( getValue().toString(), NFD ) | ||
| + .replaceAll( "\\p{M}", "" ); | ||
| } | ||