Fix generated docs example closing fences#1548
Conversation
Greptile SummaryThis PR fixes a Twig whitespace bug in the PHP and .NET doc example templates where
Confidence Score: 5/5Safe to merge — the change is a two-line template restructure that cleanly separates a closing parenthesis from the Markdown fence without touching any logic or runtime code. Both changed templates have a single, well-understood edit: the closing No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix(docs): keep example fences on their ..." | Re-trigger Greptile |
What
This keeps generated PHP and .NET example code fences on their own line after multi-parameter calls.
The current generated docs can produce lines like:
which makes the closing Markdown fence part of the code sample instead of ending the block cleanly.
Why
The reported .NET issue comes from generated examples in
appwrite/specs, and those examples are produced from thesesdk-generatordocs templates. While checking the generated source, I found the same fence pattern in the PHP examples too, so this adjusts both matching templates.Refs appwrite/appwrite#12333.
Verification
uvx djlint templates/dotnet/docs/example.md.twig templates/php/docs/example.md.twig --lintThis was implemented with Codex assistance and manually reviewed before opening the PR.