fix(web): preserve leading whitespace in chunk card content (#18215)

This commit is contained in:
euvre
2026-08-14 04:17:25 -07:00
committed by GitHub
parent 98b3785eff
commit b1fd00074e

View File

@@ -128,11 +128,10 @@ const ChunkCard = ({
>
<div
dangerouslySetInnerHTML={{
__html: sanitizeHtmlWithImagesAsText(item.content_with_weight).trim(),
__html: sanitizeHtmlWithImagesAsText(item.content_with_weight),
}}
className={classNames(
// Keep whitespaces?
'text-wrap break-words whitespace-pre',
'whitespace-pre-wrap break-words',
textMode === ChunkTextMode.Ellipse && 'line-clamp-3',
)}
/>