Repository navigation
Conversation
Nowrap turns every space into a non-breaking one with #replace and an
empty search (phpbb-ext-wiki#65), since the wiki allows no <span>; both
examples match Wikipedia. Marked adapted.
The header is the template page's documentation on a board, so calls in
it run there: Changes lines mentioning {{#if:}}, {{#replace:}},
{{SITENAME}} or {{In use}} now name them in plain words, the Lua flag
fetch_template.py writes is "Lua (#invoke)", and check_headers.py
refuses {{ or }} in any header line but Example and Expect.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Nowrap
<span class="nowrap">, so the template turns every space in its text into a non-breaking space with{{#replace:}}and an empty search (Treat an empty search text as a space in #pos, #rpos, #replace and #explode phpbb-ext-wiki#65), keeping the words on one line. Unlike the original, the text can still break at a hyphen, as its Changes line says.Template calls in headers
#if,#replace,SITENAMEand the In use template inside braces would have shown wrong text, or a link to a missing template. They now name them in plain words.fetch_template.pywrites is now "Lua (#invoke)".check_headers.pyrefuses{{or}}in any header line exceptExample:andExpect:, with a test. The README explains why.Claude ran
tools/compare_template.pyon all twelve templates on the seed-forum wiki board after the change: all 30 examples pass. Claude also checked that Nowrap's output holds non-breaking spaces.Investigated and written by Claude on behalf of William Jacoby (bonelifer).
🤖 Generated with Claude Code