mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-15 05:04:27 +08:00
fix(web): preserve leading whitespace in chunk card content (#18215)
This commit is contained in:
@@ -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',
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user