Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Palloxin committed Sep 5, 2024
1 parent 97b0574 commit 46c9d27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/src/main/assets/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ window.addEventListener('DOMContentLoaded', async () => {
if (reader.generalSettings.val.removeExtraParagraphSpacing) {
html = html
.replace(/(&nbsp;)(?<=<p[^>]*>\s*\1)/g, '')
.replace(/(?:<br>\s*<\/?br>\s*)+(?=<\/?(?:p|h[1-5])\b[^>]*>)/g, '')
.replace(/(?:<br>\s*<\/?br>\s*)+(?=<\/?(?:p|h[1-5]|br)\b[^>]*>)/g, '')
.replace(/<br>(?:(?=\s*<\/?p[^>]*>)|(?<=<\/?p>\s*<br>))\s*/g, '');
}
reader.chapterElement.innerHTML = html;
Expand Down

0 comments on commit 46c9d27

Please sign in to comment.