Skip to content

Commit

Permalink
Remove extra breaks in libreoffice
Browse files Browse the repository at this point in the history
  • Loading branch information
johanzandstra committed Oct 11, 2019
1 parent 32c94cf commit 232492c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters/break.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export function removeExtraBreaks( htmlString ) {
.replace(/<p[^>]*><b[^>]*><\/b><\/p>/g, '')
.replace(/<\/b><\/p><p[^>]*>/g, '<\/b><br>') // use BR after b line
.replace(/<\/i><\/p><p[^>]*>/g, '<\/i><br>') // use BR after i line

.replace(/<p[^>]*><br[^>]*><\/p>/g, '')
+ '';
}

0 comments on commit 232492c

Please sign in to comment.