Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit f7af9ac

Browse files
committed
fix wrapping br to paragraphs
1 parent b9e333a commit f7af9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
$text = this.$el
306306
.contents()
307307
.filter(function () {
308-
return this.nodeName === '#text' && $.trim($(this).text()) !== '';
308+
return (this.nodeName === '#text' && $.trim($(this).text()) !== '') || this.nodeName.toLowerCase() === 'br';
309309
});
310310

311311
$text.each(function () {

0 commit comments

Comments
 (0)