Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generators/HTML: fix line break handling #723

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 23, 2024

Description

As things were, line breaks in a <standard> block were not respected for proper display in HTML.

This has now been fixed by:

  • Recognizing a blank line after a text line as an indicator that the next line should be a new paragraph.
  • In all other cases, a line break will be translated to an HTML line break.

Includes updated test expectations.

Before

image
image

After

image

image

Suggested changelog entry

  • Generators/HTML: line breaks in <standard> blocks will now be respected when generating the HTML documentation.

Related issues/external references

This PR is part of a series of PRs which will add a complete set of tests (and improvements) for the Generator feature.

Also see: #671 and #717.

As things were, line breaks in a `<standard>` block were not respected for proper display in HTML.

This has now been fixed by:
* Recognizing a blank line after a text line as an indicator that the next line should be a new paragraph.
* In all other cases, a line break will be translated to an HTML line break.

Includes updated test expectations.
@jrfnl jrfnl added this to the 3.11.2 milestone Nov 23, 2024
@jrfnl jrfnl merged commit becac94 into master Nov 27, 2024
72 checks passed
@jrfnl jrfnl deleted the feature/generators-html-fix-line-break-handling branch November 27, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant