Skip to content

Commit 7d0669f

Browse files
committed
Fix copy/pasting of plain text
1 parent f0c7abd commit 7d0669f

File tree

1 file changed

+1
-2
lines changed
  • aztec/src/main/kotlin/org/wordpress/aztec/source

1 file changed

+1
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/source/Format.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.util.regex.Pattern
1212
object Format {
1313

1414
// list of block elements
15-
private val block = "div|br|blockquote|ul|ol|li|p|pre|h1|h2|h3|h4|h5|h6|iframe|hr|aztec_cursor"
15+
private val block = "div|br|blockquote|ul|ol|li|p|pre|h1|h2|h3|h4|h5|h6|iframe|hr"
1616

1717
private val iframePlaceholder = "iframe-replacement-0x0"
1818

@@ -251,7 +251,6 @@ object Format {
251251
html = sb.toString()
252252
}
253253

254-
html += "\n\n"
255254

256255
html = replaceAll(html, "(?i)<br ?/?>\\s*<br ?/?>", "\n\n")
257256
html = replaceAll(html, "(?i)(<(?:$blocklist)(?: [^>]*)?>)", "\n$1")

0 commit comments

Comments
 (0)