✨ Make epilog formatting consistent with other parts of the help string
#1405
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in #1400, the formatting of the
epilogsection of the help text is currently not consistent with the other parts of the help text.This PR introduces a new private function
_fix_linebreaksthat 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.