Skip to content

Lint: Missing extra space at end of new section #311

Description

@gian1200

Describe the bug

MD032/blanks-around-lists: Lists should be surrounded by blank lines

When generating a new release, there is no space between old changelog and new changelog section

Current behavior

...
* a description asdf ([123456](URL...))
## [1.1.0](URL.../compare/v1.1.0...v1.2.0) (a date)
...

Expected behavior

...
* a description asdf ([123456](URL...))

## [1.1.0](URL.../compare/v1.1.0...v1.2.0) (a date)
...

Environment

  • commit-and-tag-version version(s): v13.1.0
  • Node/npm version: Node v24.16.0/npm 11.13.0
  • OS: Windows 11

Possible Solution

Add + /n + in

(content + oldContentBody).replace(/\n+$/, '\n'),

Additional context

See conventional-changelog/conventional-changelog#1511 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions