Skip to content

Issue with title textwrap feature messing with formatting #150

@tim-morriss

Description

@tim-morriss

Problem

I am having a problem with title formatting introduced by this textwrap line in this PR.

Line in Question:

return textwrap.fill(self.title, max_width - 2, drop_whitespace=False).split("\n") + [""]

Before

I have this title page with ASCII art for my CLI interface:

Image

After

It gets formatted to this:

Image

This seems to be an issue with the wrap function enforcing the title fills the terminal window.

Proposed solution

Make text wrapping optional for title.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions