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/Markdown: fix whitespace handling in code title #739

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 27, 2024

Description

If there were multiple spaces next to each other in the title, this would be folded into one space for the display in HTML and Markdown.

This could mangle the code title, so fixed now.

Includes updated test expectations.

Before

6-code-title-html-whitespace-within-before
6-code-title-markdown-whitespace-within-before

After

6-code-title-html-whitespace-within-after
6-code-title-markdown-whitespace-within-after

Suggested changelog entry

Generators/HTML + Markdown: now better respect whitespace within a code sample title

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 #718.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

If there were multiple spaces next to each other in the title, this would be folded into one space for the display in HTML and Markdown.

This could mangle the code title, so fixed now.

Includes updated test expectations.
@jrfnl jrfnl added this to the 3.11.2 milestone Nov 27, 2024
@jrfnl jrfnl merged commit daf63d9 into master Dec 1, 2024
59 checks passed
@jrfnl jrfnl deleted the feature/generator-html-markdown-fix-whitespace-handling-code-titles branch December 1, 2024 07:36
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