Skip to content

Commit

Permalink
style: avoid trailing whitespace in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kmnhan committed Apr 8, 2024
1 parent 351f82a commit aafc441
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@

* tests: reduce test time by specifying explicit path ([`60fb0d0`](https://github.com/kmnhan/erlabpy/commit/60fb0d0cedd9f0aaeca7101dddf0848f8872ccc3))


This will not trigger directory recursion, so tests will run a bit faster

* tests: add tests for fitting functions ([`4992251`](https://github.com/kmnhan/erlabpy/commit/499225149346e970d00b60dcb5ca39af5e5ddb47))
Expand Down Expand Up @@ -235,7 +234,6 @@

* [pre-commit.ci] auto fixes from pre-commit.com hooks ([`b86c995`](https://github.com/kmnhan/erlabpy/commit/b86c9952be94b4b7f5e5918ed28cbf39b750ef09))


for more information, see https://pre-commit.ci


Expand Down
12 changes: 6 additions & 6 deletions templates/.macros.j2
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% macro render_single_commit(commit) -%}
* {% if commit["scope"] is not none %}**{{ commit["scope"] }}** {% endif %}{{ commit["descriptions"][0].rstrip() }} ([`{{commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% for line in commit["descriptions"][1:] %}
{{ line | indent(2, first=True, blank=True) -}}
{% endfor %}
{% for line in commit["descriptions"][1:] %}{% if line | trim != "" %}
{{ line.strip() | indent(2, first=True, blank=True) -}}
{% endif %}{% endfor %}
{%- endmacro %}

{% macro render_unknown_commit(commit) -%}
* {{ commit.message.rstrip().split("\n")[0] }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
{% for line in commit.message.rstrip().split("\n")[1:] %}
{{ line | indent(2, first=True, blank=True) -}}
{% endfor %}
{% for line in commit.message.rstrip().split("\n")[1:] %}{% if line | trim != "" %}
{{ line.strip() | indent(2, first=True, blank=True) -}}
{% endif %}{% endfor %}
{%- endmacro %}

{%- macro render_elements(elements) -%}
Expand Down

0 comments on commit aafc441

Please sign in to comment.