Skip to content

Conversation

@svlandeg
Copy link
Member

@svlandeg svlandeg commented Nov 12, 2025

As discussed in #1400, the formatting of the epilog section of the help text is currently not consistent with the other parts of the help text.

This PR introduces a new private function _fix_linebreaks that has the same functionality as before as part of _get_help_text. It deals with linebreaks depending on the given markup mode. This function is then also used when printing the epilog, ensuring consistency. Only the formatting of the epilog is changed, nothing else.

On master, the new unit test fails both for "markdown" and "rich", as it joins together the first few lines into one big "Just wrapping up: This is the first conclusion Here is conclusion two" line.

@svlandeg svlandeg added the feature New feature, enhancement or request label Nov 12, 2025
@svlandeg svlandeg self-assigned this Nov 12, 2025
@svlandeg svlandeg marked this pull request as ready for review November 12, 2025 15:09
@svlandeg svlandeg removed their assignment Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature, enhancement or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant