Skip to content

Raw markdown view appends extra empty lines at the bottom of files #1500

@ambient-code

Description

@ambient-code

Category: bug / UX improvement

Summary

When viewing raw markdown (or any file) in the platform, extra empty lines appear at the bottom of the content. The original files do not contain these lines — the platform or UI is appending them.

Steps to Reproduce

  1. Upload or create a file with no trailing empty lines
  2. Open the file artifact in the raw markdown view
  3. Scroll to the bottom
  4. Result: Multiple empty lines appear at the end of the content that are not present in the source file

Expected Behavior

Raw file content should be displayed exactly as-is, with no extra lines appended.

Actual Behavior

Extra empty lines are appended at the bottom of the raw view regardless of the file's actual content. This has been reproduced with:

  • Uploaded files that have no trailing newlines
  • Files created within the platform

Notes

  • The issue is consistent across different files, suggesting it is added by the platform rendering/serving layer, not the file content itself
  • Verified by inspecting source files directly — they end cleanly with no trailing blank lines

Filed via Amber Interview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions