Skip to content

Diff with only trailing newline removed does not render at all #51

@JamesHenry

Description

@JamesHenry

Hi again @MrWangJustToDo, for this diff which only has a trailing newline removed:

diff --git a/astro-docs/src/content/docs/reference/nx-mcp.mdoc b/astro-docs/src/content/docs/reference/nx-mcp.mdoc
index b685aed7f8..9355565517 100644
--- a/astro-docs/src/content/docs/reference/nx-mcp.mdoc
+++ b/astro-docs/src/content/docs/reference/nx-mcp.mdoc
@@ -269,4 +269,3 @@ Using the Nx Cloud tools, the AI can:
 1. Access detailed information about the failed build
 2. Retrieve terminal output from failed tasks
 3. Understand what changed and suggest fixes
-

...no diff renders at all.

You can reproduce by just applying the above diff to your playground: https://mrwangjusttodo.github.io/git-diff-view/?type=try

Image

The above diff rendered fine on GitHub and you can see how another patch visualizer tool works on it here:

https://scrapfly.io/web-scraping-tools/patch-viewer

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions