From 9f82f58ea9840d0ec89e185c3f8544d9a5a239a3 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Thu, 16 Jan 2020 13:52:56 -0800 Subject: [PATCH] Dev: Include closed body and html tags in getTrail This will allow us to render in Storybook without having issues with unclosed tags. it also mirrors how html-headelement works (obscuring the opening of the body and html tags) Bug: T240062 Bug: T242674 Change-Id: I216a920c68bf3da9de55a75fc53451c68c9cc753 --- includes/VectorTemplate.php | 2 +- includes/templates/index.mustache | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/VectorTemplate.php b/includes/VectorTemplate.php index 39f2445..6d5d60e 100644 --- a/includes/VectorTemplate.php +++ b/includes/VectorTemplate.php @@ -112,7 +112,7 @@ class VectorTemplate extends BaseTemplate { // From MWDebug::getHTMLDebugLog (when $wgShowDebug is enabled) 'html-debuglog' => $this->get( 'debughtml', '' ), // From BaseTemplate::getTrail (handles bottom JavaScript) - 'html-printtail' => $this->getTrail(), + 'html-printtail' => $this->getTrail() . '', ]; // TODO: Convert the rest to Mustache diff --git a/includes/templates/index.mustache b/includes/templates/index.mustache index 0c8e6f9..412d8fb 100644 --- a/includes/templates/index.mustache +++ b/includes/templates/index.mustache @@ -32,5 +32,3 @@ {{! html-unported outputs
and