From 04bdf8f4bcb73aee26d566f8cba60e612e0084a7 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Thu, 28 Sep 2023 11:38:03 -0400 Subject: [PATCH] Use Liquid ifversion in Markdown table with whitespace removal (#43382) --- .../dependabot-alerts-dependency-scope.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/data/reusables/dependabot/dependabot-alerts-dependency-scope.md b/data/reusables/dependabot/dependabot-alerts-dependency-scope.md index d74a66522305..bbbc02eb03ef 100644 --- a/data/reusables/dependabot/dependabot-alerts-dependency-scope.md +++ b/data/reusables/dependabot/dependabot-alerts-dependency-scope.md @@ -1,15 +1,21 @@ The table below summarizes whether dependency scope is supported for various ecosystems and manifests, that is, whether {% data variables.product.prodname_dependabot %} can identify if a dependency is used for development or production. | **Language** | **Ecosystem** | **Manifest file** | **Dependency scope supported** | -|:---|:---:|:---:|:---|{% ifversion dependency-graph-dart-support %} +|:---|:---:|:---:|:---| +{%- ifversion dependency-graph-dart-support %} | Dart | pub | pubspec.yaml | {% octicon "check" aria-label="Supported" %} | -| Dart | pub | pubspec.lock | {% octicon "check" aria-label="Supported" %} |{% endif %} -| Go | Go modules | go.mod | No, defaults to runtime |{% ifversion ghes < 3.9 or ghae < 3.9 %} -| Go | Go modules | go.sum | No, defaults to runtime |{% endif %} +| Dart | pub | pubspec.lock | {% octicon "check" aria-label="Supported" %} | +{%- endif %} +| Go | Go modules | go.mod | No, defaults to runtime | +{%- ifversion ghes < 3.9 or ghae < 3.9 %} +| Go | Go modules | go.sum | No, defaults to runtime | +{%- endif %} | Java | Maven | pom.xml | {% octicon "check" aria-label="Supported" %} `test` maps to development, else scope defaults to runtime | | JavaScript | npm | package.json | {% octicon "check" aria-label="Supported" %} | -| JavaScript | npm | package-lock.json | {% octicon "check" aria-label="Supported" %} |{% ifversion dependabot-dependency-graph-pnpm %} -| JavaScript | npm | pnpm-lock.yaml | {% octicon "check" aria-label="Supported" %} |{% endif %} +| JavaScript | npm | package-lock.json | {% octicon "check" aria-label="Supported" %} | +{%- ifversion dependabot-dependency-graph-pnpm %} +| JavaScript | npm | pnpm-lock.yaml | {% octicon "check" aria-label="Supported" %} | +{%- endif %} | JavaScript | yarn v1 | yarn.lock | No, defaults to runtime | | PHP | Composer | composer.json | {% octicon "check" aria-label="Supported" %} | | PHP | Composer | composer.lock | {% octicon "check" aria-label="Supported" %} |