Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top line is applied twice #352

Closed
kasium opened this issue Jun 28, 2021 · 3 comments
Closed

Top line is applied twice #352

kasium opened this issue Jun 28, 2021 · 3 comments

Comments

@kasium
Copy link

kasium commented Jun 28, 2021

Hi,
with the latest version of towncrier the top line is twice applied leading to a weird text and invalid rST.

pyproject.toml

[tool.towncrier]
filename = "CHANGELOG.rst"
directory = "news/"
title_format = "{version} ({project_date})"

  [[tool.towncrier.type]]
  directory = "feature"
  name = "Features"
  showcontent = true

news/123.feature

dummy

CHANGELOG.rst

.. towncrier release notes start

If I now execute towncrier --yes --version 0.50.0, teh following text is generated:

CHANGELOG.rst

0.50.0 (2021-06-28)0.50.0 (2021-06-28)
===================

Features
--------

- dummy (#1234)


.. towncrier release notes start
@kasium kasium changed the title Top line is twice applied Top line is applied twice Jun 28, 2021
@pquentin
Copy link
Contributor

Can confirm the bug when a title_format is specified

@pquentin
Copy link
Contributor

This is a duplicate of #346 though.

@kasium
Copy link
Author

kasium commented Jul 16, 2021

Thanks, I'll close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants