diff --git a/android/app/src/main/assets/js/core.js b/android/app/src/main/assets/js/core.js index f67afef9c..a7610ddfe 100644 --- a/android/app/src/main/assets/js/core.js +++ b/android/app/src/main/assets/js/core.js @@ -469,7 +469,7 @@ window.addEventListener('DOMContentLoaded', async () => { .replace(/(?: \s*)+(?=<\/?p\b[^>]*>)/g, '') .replace(/(?:
\s*)+(?=
\s*
)/g, '') //force max 2 consecutive
, chaining regex .replace( - /
\s*
(?:(?=\s*<(?!em>|[iab]>|strong>|span>))|(?<=(?\s*
\s*<\/?br>))/g, + /
\s*
(?:(?=\s*<(?!em>|[iab]>|strong>|span>))|(?<=(?\s*
\s*
))/g, '', ) //look-around double br. If certain tags aren't near, delete the double br. .replace(/
(?:(?=\s*<\/?p\b[^>]*>)|(?<=<\/?p>\s*
))\s*/g, '');