We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72c646c commit 5ff5384Copy full SHA for 5ff5384
extensions/ql-vscode/src/variant-analysis/markdown-generation.ts
@@ -283,12 +283,9 @@ function generateMarkdownForPathResults(
283
language,
284
threadFlow.highlightedRegion,
285
);
286
- // Indent the snippet to fit with the numbered list.
287
- // The indentation is "n + 2" where the list number is an n-digit number.
+ const indentation = " ".repeat(listNumber.toString().length + 2);
288
pathLines.push(
289
- ...codeSnippet.map((line) =>
290
- (" ".repeat(listNumber.toString().length + 2) + line).trimEnd(),
291
- ),
+ ...codeSnippet.map((line) => indentation + line.trimEnd()),
292
293
}
294
0 commit comments