Skip to content

Unexpected wrap in pre-block #306

Open

Description

@davep

While adding the documentation for smolserve to my personal capsule, I noticed that this:

```makefile
.PHONY: docs
docs:
	uv run smolserve exec -- $(mkdocs) build

.PHONY: rtfm
rtfm:
	uv run smolserve exec -- $(mkdocs) serve --livereload
```

Comes out looking like this:

Image

There's plenty of horizontal space, so no reason why the final bit of text should wrap like that. Moreover, the pre-blocks should never wrap and should scroll horizontally if there's not enough horizontal space (and testing by narrowing the display shows that they do).

This feels like, possibly, some oddity with Textual itself.

Activity

  1. self-assigned this
    on Aug 9, 2026
  2. added
    BugSomething isn't working
    CosmeticAll things relating to the look of the application
    TODOA thing I'm planning on doing
    on Aug 9, 2026
  3. davep commented on Aug 9, 2026

    @davep
    OwnerAuthor

    It's also worth noting that, for some reason, the highlighting is all over the place there. Almost like it's ignoring the makefile language tag and using something completely different.

  4. davep commented on Aug 9, 2026

    @davep
    OwnerAuthor

    If I take out the physical tabs, it fixes the issue:

    Image

    This would suggest it's either a Textual or a Pygments issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingCosmeticAll things relating to the look of the applicationPriority: MediumSoon...TODOA thing I'm planning on doing

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions