docs: share fix diff bugs

This commit is contained in:
Jay V
2025-07-15 17:39:37 -04:00
parent 749e7838a4
commit 8a3e581edc
3 changed files with 28 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
import { type Component, createMemo } from "solid-js"
import { parsePatch } from "diff"
import { createMemo } from "solid-js"
import { ContentCode } from "./content-code"
import styles from "./content-diff.module.css"
@@ -90,8 +90,8 @@ export function ContentDiff(props: Props) {
i++
} else if (prefix === " ") {
diffRows.push({
left: content,
right: content,
left: content === "" ? " " : content,
right: content === "" ? " " : content,
type: "unchanged",
})
i++