]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1524158 - markdown generated by approval comment form could be improved
authorKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 31 Jan 2019 17:25:17 +0000 (12:25 -0500)
committerGitHub <noreply@github.com>
Thu, 31 Jan 2019 17:25:17 +0000 (12:25 -0500)
extensions/FlagTypeComment/web/js/ftc.js

index 6fc0601829ff90e7b8b21d73aaeede285e51926d..482b18e64b641b52467f00198ad5df1feac98f48 100644 (file)
@@ -178,7 +178,7 @@ Bugzilla.FlagTypeComment = class FlagTypeComment {
 
     for (const $fieldset of this.inserted_fieldsets) {
       const text = [
-        `## ${$fieldset.querySelector('h3').innerText}`,
+        `### ${$fieldset.querySelector('h3').innerText}`,
         ...[...$fieldset.querySelectorAll('tr')].map($tr => {
           const checkboxes = [...$tr.querySelectorAll('input[type="checkbox"]:checked')];
           const $radio = $tr.querySelector('input[type="radio"]:checked');
@@ -210,7 +210,7 @@ Bugzilla.FlagTypeComment = class FlagTypeComment {
             }
           }
 
-          return `### ${label}\n\n${value}`;
+          return `#### ${label}\n\n${value}`;
         }),
       ].join('\n\n');