jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/332569 )
Change subject: Further "custom format" spec tweaks. ...................................................................... Further "custom format" spec tweaks. Change how newlines are handled in the EndFormat production. Change-Id: Iae5181e65c7afe25810406a39f387f0c1f3cb1b3 --- M Specification.md 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: jenkins-bot: Verified Jforrester: Looks good to me, approved diff --git a/Specification.md b/Specification.md index 57aea75..f0c3821 100644 --- a/Specification.md +++ b/Specification.md @@ -296,9 +296,9 @@ Begin with `StartFormat`, and replace the `Hole` with the name of the template to create the "output string". If `StartFormat` begins with a newline and template is already at the start of a line (the character preceding this template invocation is a newline or the template is at the start of the output), delete the initial newline from the output string. -For each parameter, append the `ParameterFormat` to the output string after replacing the first `Hole` with the name of the parameter and the second `Hole` with the value of the parameter. +For each parameter, if `ParameterFormat` begins with a newline and the last character in the output string is a newline, then delete the last character in the output string. Then append `ParameterFormat` to the output string after replacing the first `Hole` with the name of the parameter and the second `Hole` with the value of the parameter. -Finally, append the `EndFormat` to the output string. +Finally, if `EndFormat` begins with a newline and the last character in the output string is a newline, then delete the last character in the output string. Append the `EndFormat` to the output string. Some example format strings: -- To view, visit https://gerrit.wikimedia.org/r/332569 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iae5181e65c7afe25810406a39f387f0c1f3cb1b3 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/TemplateData Gerrit-Branch: master Gerrit-Owner: C. Scott Ananian <[email protected]> Gerrit-Reviewer: C. Scott Ananian <[email protected]> Gerrit-Reviewer: Jforrester <[email protected]> Gerrit-Reviewer: Subramanya Sastry <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
