From 32d2dc20f6b01cfb2750eed7f36fc6c6a734d78b Mon Sep 17 00:00:00 2001 From: martgil Date: Mon, 27 May 2024 20:35:35 +0800 Subject: [PATCH] - Re-arrange processing of newlines - Remove styling that causes inline-block div that produces problem --- .../chrome/elements/compose-modules/compose-quote-module.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/chrome/elements/compose-modules/compose-quote-module.ts b/extension/chrome/elements/compose-modules/compose-quote-module.ts index a3ca092ae00..53c1a92f88d 100644 --- a/extension/chrome/elements/compose-modules/compose-quote-module.ts +++ b/extension/chrome/elements/compose-modules/compose-quote-module.ts @@ -197,7 +197,7 @@ export class ComposeQuoteModule extends ViewModule { private convertLineBreakToBr = (text: string, shouldQuote: boolean) => { return text .split('\n') - .map(line => `
${shouldQuote ? '> ' : ''}${line}`.trim()) + .map(line => `${shouldQuote ? '> ' : ''}${line}
`.trim()) .join(''); }; @@ -213,9 +213,9 @@ export class ComposeQuoteModule extends ViewModule { const dirAttr = `dir="${rtl ? 'rtl' : 'ltr'}"`; const escapedText = this.convertLineBreakToBr(Xss.escape(text), method === 'reply'); if (method === 'reply') { - const header = `
On ${dateStr}, ${from ?? ''} wrote:
`; + const header = `
On ${dateStr}, ${from ?? ''} wrote:
`; const sanitizedQuote = Xss.htmlSanitize(header + escapedText); - return `
${sanitizedQuote}
`; + return `
${sanitizedQuote}
`; } else { const header = `
` +