Skip to content

Generators/HTML: various minor code simplifications #823

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

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 16, 2025

Description

Generators/HTML::getFormattedHeader(): minor simplification

Use a single call to sprintf() instead of lots of string concatenation.

Generators/HTML::getFormattedFooter(): minor simplification

Use a single call to sprintf() instead of lots of string concatenation.

Generators/HTML::getFormattedToc(): minor simplification

Use sprintf() on a template string.

Suggested changelog entry

N/A

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 other PR with the Core Component: Generators label.

Use a single call to `sprintf()` instead of lots of string concatenation.
Use a single call to `sprintf()` instead of lots of string concatenation.
Use `sprintf()` on a template string.
@jrfnl jrfnl merged commit 2fa51a5 into master Feb 19, 2025
59 checks passed
@jrfnl jrfnl deleted the feature/generator-html-various-simplifications branch February 19, 2025 10:26
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.

2 participants