From f554ad4d47dd39e9dd34c488e598fd1533a97c30 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 20 Sep 2024 15:34:32 -0400 Subject: [PATCH] Remove empty paragraph tag --- src/helpers/text-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/text-helper.js b/src/helpers/text-helper.js index 220b1d3f..6ff5ad47 100644 --- a/src/helpers/text-helper.js +++ b/src/helpers/text-helper.js @@ -18,7 +18,7 @@ export function stripRteStyle(stringWithStyleTag) { * @returns {string} converted string wrapped in an
    */ export function createOrderedListFromStringOfParagraphs(stringOfParagraphs) { - return `
      ${stringOfParagraphs.replaceAll('

      ', '

    1. ').replaceAll('

      ', '
    2. ')}
    `; + return `
      ${stringOfParagraphs.replaceAll('

      ', '').replaceAll('

      ', '

    1. ').replaceAll('

      ', '
    2. ')}
    `; } /**