Fix newline character in App.tsx

This commit is contained in:
2026-01-31 13:11:13 +01:00
parent 07cdf7421f
commit fef296ac7e

View File

@@ -162,8 +162,7 @@ export default function App() {
const historyIconSrc = theme === "light" ? historyIconBright : historyIcon;
const lines = useMemo(() => body.split("
"), [body]);
const lines = useMemo(() => body.split("\n"), [body]);
const lineNumbers = useMemo(() => lines.map((_, index) => index + 1), [lines]);
const handleTextareaScroll = useCallback((event: React.UIEvent<HTMLTextAreaElement>) => {