Skip to content

Help: Solve clipping of paragraphs. [Hard] #132

@PPartisan

Description

@PPartisan

The "Help" page uses our markdown parser to convert paragraphs of markdown text into Lanterna widgets. This works but has a problem: individual widgets do not wrap their content but instead size themselves as a group to fit on a single page, meaning individual paragraphs can be cut off.

The simplest solution to this problem is to eliminate any custom formatting, treat all parsed Markdown as text, and place it inside a textbox. This would allow us to benefit from the scrolling behaviour of Lanterna textboxes, but it would also mean we lose our formatting (bold, italic, etc.).

Another more challenging option is to try to write our layout manager, which is scrollable so that all child widgets are sized to encompass all their content correctly.

I am happy with either solution, or any other solution, so long as all help text is visible in some form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    independent workTasks ideal for work in small groups

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions