Skip to content

Commit

Permalink
Merge pull request #172 from bmish/nbsp-char-name-col
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Oct 27, 2022
2 parents 9e86422 + 254e29b commit fb307a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rule-list-columns.ts
Expand Up @@ -70,7 +70,7 @@ export const COLUMN_HEADER: {
ruleNames.length > 0 &&
longestRuleDescriptionLength >= 60 &&
longestRuleNameLength > title.length
? ' '.repeat(longestRuleNameLength - title.length)
? ' '.repeat(longestRuleNameLength - title.length) // U+00A0 nbsp character.
: '';

return `${title}${spaces}`;
Expand Down
2 changes: 1 addition & 1 deletion test/lib/__snapshots__/generator-test.ts.snap
Expand Up @@ -443,7 +443,7 @@ exports[`generator #generate rule with long-enough description to require name c
"## Rules
<!-- begin auto-generated rules list -->
| Name&nbsp;&nbsp; | Description |
| Name   | Description |
| :----------------------------- | :---------------------------------------------------------------------------------- |
| [no-foo](docs/rules/no-foo.md) | over 60 chars over 60 chars over 60 chars over 60 chars over 60 chars over 60 chars |
Expand Down

0 comments on commit fb307a0

Please sign in to comment.