sr-npm 1.7.1259 → 1.7.1261
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -336,9 +336,11 @@ function addEmptyParagraphsBetweenConsecutive(html, richContent,jobName) {
|
|
|
336
336
|
if(jobName.name===" Apparel Team Member - The Warehouse, Dargaville")
|
|
337
337
|
{
|
|
338
338
|
console.log("rich content is : ",richContent);
|
|
339
|
+
console.log("html is : ",html);
|
|
339
340
|
}
|
|
340
341
|
if (!richContent || !richContent.nodes) return richContent;
|
|
341
|
-
|
|
342
|
+
html = html.replace(/<\/?span[^>]*>/gi, '');
|
|
343
|
+
console.log("html is after : ",html);
|
|
342
344
|
const hasConsecutiveParagraphs = /<\/p>\s*<p/i.test(html);
|
|
343
345
|
const hasParagraphBeforeList = /<\/p>\s*<ul/i.test(html);
|
|
344
346
|
const hasParagraphAfterList = /<\/ul>\s*<p/i.test(html);
|