From 5d51d172c48921587b46360d01e138202aa4e48a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 20 Nov 2021 09:38:00 -0500 Subject: [PATCH] Collapse config details by default --- src/js/support.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/support.js b/src/js/support.js index 0c222f0be..928e52c6d 100644 --- a/src/js/support.js +++ b/src/js/support.js @@ -115,7 +115,7 @@ function patchEmptiness(data, prop) { } function configToMarkdown(collapse = false) { - const text = cmEditor.getValue(); + const text = cmEditor.getValue().trim(); return collapse ? '
\n\n```yaml\n' + text + '\n```\n
' : '```yaml\n' + text + '\n```\n'; @@ -219,7 +219,7 @@ function reportSpecificFilterIssue(ev) { githubURL.searchParams.set('title', title); githubURL.searchParams.set('url_address_of_the_web_page', '`' + reportURL.href + '`'); githubURL.searchParams.set('category', issueType); - githubURL.searchParams.set('configuration', configToMarkdown(false)); + githubURL.searchParams.set('configuration', configToMarkdown(true)); vAPI.messaging.send('default', { what: 'gotoURL', details: { url: githubURL.href, select: true, index: -1 },