diff --git a/.gitchangelog.rc b/.gitchangelog.rc index 6a1fd13..d48ecfe 100644 --- a/.gitchangelog.rc +++ b/.gitchangelog.rc @@ -82,7 +82,7 @@ ignore_regexps = [ ## section_regexps = [ ('New', [ - r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', + r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', ]), ('Changes', [ r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', @@ -157,7 +157,7 @@ import os.path unreleased_version_label = lambda: swrap( (["bash"] if WIN32 else []) + [os.path.join(".", "autogen.sh"), "--get-version"], - shell=False) +shell=False) @@ -245,8 +245,8 @@ include_merge = True #revs = [ # Caret( # FileFirstRegexMatch( -# "CHANGELOG.rst", -# r"(?P[0-9]+\.[0-9]+\.[0-9]+)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n\n")), +# "CHANGELOG.rst", +# r"(?P[0-9]+\.[0-9]+\.[0-9]+)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n\n")), # "HEAD" #] revs = [] diff --git a/src/gitchangelog/gitchangelog.py b/src/gitchangelog/gitchangelog.py index f153c55..cd6a95e 100755 --- a/src/gitchangelog/gitchangelog.py +++ b/src/gitchangelog/gitchangelog.py @@ -462,7 +462,6 @@ def curryfy(f): "ucfirst", "strip"): _config_env[_label] = locals()[_label] - ## ## File ## @@ -1331,6 +1330,7 @@ def render_commit(commit, opts=opts): if len(version["sections"]) > 0: yield render_version(version) + "\n\n" + ## formatter engines if pystache: @@ -1427,7 +1427,7 @@ def stdout(content): safe_print(chunk) @available_in_config def FileInsertAtFirstRegexMatch(filename, pattern, flags=0, - idx=lambda m: m.start()): + idx=lambda m: m.start()): def write_content(f, content): for content_line in content: