Skip to content

Documentation renders extra whitespace in verbatim blocks #5815

@xaviershay

Description

@xaviershay

Describe and demonstrate the bug

The following documentation:

README =  {{ docVerbatim (Paragraph (fill 3 (Word "X\n"))}}

Renders with an extra whitespace on lines that aren't the first.

Screenshots

Image

Environment (please complete the following information):

> ucm --version
unison version: 3379c03 (built on 2025-07-24)
> uname -a
Linux apollo 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64 GNU/Linux

Additional context

Have also seen similar printing multiline strings when evaluating functions (that's how I got here), but haven't been able to figure out consistent repro, it seems there are some heuristics in multiline string printing that I haven't figured out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions