Skip to content

Commit 7643002

Browse files
committed
fix: Fix wrapper whitespace property
1 parent ea1aa69 commit 7643002

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/HtmlWrapper.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ import { Interweave } from 'interweave';
88
const HtmlWrapper = ({ children }: { children: React.ReactNode }) => {
99
// ensures that htmlText is a string
1010
const htmlText = typeof children === 'string' ? children : '';
11-
return <Interweave content={htmlText} />;
11+
return (
12+
<div style={{ whiteSpace: 'normal' }}>
13+
<Interweave content={htmlText} />
14+
</div>
15+
);
1216
};
1317

1418
export default HtmlWrapper;

0 commit comments

Comments
 (0)