Merge pull request #12856 from systimotic/fix/bug-reporting-indentation
Fix closing backticks indentation on bug report
This commit is contained in:
@ -1,5 +1,3 @@
|
|||||||
import dedent from 'dedent';
|
|
||||||
|
|
||||||
import types from '../redux/types';
|
import types from '../redux/types';
|
||||||
import { closeBugModal } from '../redux/actions';
|
import { closeBugModal } from '../redux/actions';
|
||||||
|
|
||||||
@ -12,13 +10,15 @@ function filesToMarkdown(files = {}) {
|
|||||||
}
|
}
|
||||||
const fileName = moreThenOneFile ? `\\ file: ${file.contents}` : '';
|
const fileName = moreThenOneFile ? `\\ file: ${file.contents}` : '';
|
||||||
const fileType = file.ext;
|
const fileType = file.ext;
|
||||||
return fileString + dedent`
|
return fileString +
|
||||||
\`\`\`${fileType}
|
'\`\`\`' +
|
||||||
${fileName}
|
fileType +
|
||||||
${file.contents}
|
'\n' +
|
||||||
\`\`\`
|
fileName +
|
||||||
\n
|
'\n' +
|
||||||
`;
|
file.contents +
|
||||||
|
'\n' +
|
||||||
|
'\`\`\`\n\n';
|
||||||
}, '\n');
|
}, '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user