Skip to content

Commit

Permalink
Fix generated formatting of ASN_FORMAT_EXAMPLES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Sep 9, 2024
1 parent bbc6d9b commit 4c6462c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 3 additions & 10 deletions ASN_FORAMT_EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

[Back to README](./README.md)


---

## Range 3
## Range 3

Configuration (Environment Variables):

Expand All @@ -34,7 +33,6 @@ ASN - 1 - 001
After 999, another digit is added.
```


## Range 3 with ASN_ENABLE_NAMESPACE_EXTENSION

Configuration (Environment Variables):
Expand Down Expand Up @@ -64,8 +62,7 @@ ASN - 1 - 001
After 999, another digit is added.
```


## Range 30
## Range 30

Configuration (Environment Variables):

Expand All @@ -91,7 +88,6 @@ ASN - 10 - 001
After 999, another digit is added.
```


## Range 30 with ASN_ENABLE_NAMESPACE_EXTENSION

Configuration (Environment Variables):
Expand Down Expand Up @@ -121,8 +117,7 @@ WBD - 10 - 001
After 999, another digit is added.
```


## Range 300
## Range 300

Configuration (Environment Variables):

Expand All @@ -148,7 +143,6 @@ WBD - 100 - 001
After 999, another digit is added.
```


## Range 300 with ASN_ENABLE_NAMESPACE_EXTENSION

Configuration (Environment Variables):
Expand Down Expand Up @@ -177,4 +171,3 @@ WBD - 100 - 001
(3) Counter, starting from 001, incrementing with each new ASN in the namespace.
After 999, another digit is added.
```

6 changes: 2 additions & 4 deletions scripts/format-examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const md = (
enableExtension: boolean,
output: string,
) => `
## Range ${range} ${
enableExtension ? "with ASN_ENABLE_NAMESPACE_EXTENSION" : ""
## Range ${range}${
enableExtension ? " with ASN_ENABLE_NAMESPACE_EXTENSION" : ""
}
Configuration (Environment Variables):
Expand All @@ -40,7 +40,6 @@ Format Description:
\`\`\`text
${output}
\`\`\`
`;

let content = `<!-- deno-fmt-ignore-file -->
Expand All @@ -50,7 +49,6 @@ let content = `<!-- deno-fmt-ignore-file -->
[Back to README](./README.md)
---
`;

Expand Down

0 comments on commit 4c6462c

Please sign in to comment.