diff --git a/src/HtmlUtils.js b/src/HtmlUtils.js index 13b3f3094f..ee679391cc 100644 --- a/src/HtmlUtils.js +++ b/src/HtmlUtils.js @@ -99,9 +99,8 @@ export function processHtmlForSending(html: string): string { if (element.tagName.toLowerCase() === 'p') { contentHTML += element.innerHTML + '
'; } else if (element.tagName.toLowerCase() === 'pre') { - // Replace "
\n" with "
" because the \n is redundant and causes an - // extra newline per line within `
` tags.
-            // This is a workaround for a bug in draft-js-export-html:
+            // Replace "
\n" with "\n" within `
` tags because the 
is + // redundant. This is a workaround for a bug in draft-js-export-html: // https://github.com/sstur/draft-js-export-html/issues/62 contentHTML += '
' +
                 element.innerHTML.replace(/
\n/g, '\n').trim() +