fix: Stop pairs of tags from getting put into paragraphs (#35864)

This commit is contained in:
Oliver Eyton-Williams
2019-06-11 14:45:36 +02:00
committed by Valeriy
parent 0d82d0a763
commit 93790af030
3 changed files with 296 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function textToData(sectionIds) {
const lines = child.value.split('\n');
if (lines.filter(Boolean).length > 0) {
lines.forEach((line, index) => {
if (/^\s*$/.test(line)) {
if (line === '') {
currentParagraph = null;
} else {
if (!currentParagraph || index > 0) {