Facilitate the next release.
authorWayne Davison <wayne@opencoder.net>
Tue, 18 Jan 2022 03:25:02 +0000 (19:25 -0800)
committerWayne Davison <wayne@opencoder.net>
Tue, 18 Jan 2022 03:43:43 +0000 (19:43 -0800)
NEWS.md
packaging/release-rsync

diff --git a/NEWS.md b/NEWS.md
index 502d2d6c2985e03f64a161a15e91b1189d14a952..a2734d524a1abbb8e7049425be7f2830a8044b5b 100644 (file)
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,4 +1,3 @@
-
 # NEWS for rsync 3.2.4 (UNRELEASED)
 
 ## Changes in this version:
 
  - Use mallinfo2() instead of mallinfo(), when available.
 
-
 ------------------------------------------------------------------------------
 
 # NEWS for rsync 3.2.3 (6 Aug 2020)
index 78f1676fd7bf074e9faae9cf06a0c4d4f4cdb5fb..d484628caa5c3ece7bb9b83489b724c3eaf0dfd2 100755 (executable)
@@ -206,10 +206,10 @@ About to:
             txt = replace_or_die(x_re, repl, txt, f"Unable to find SUBPROTOCOL_VERSION define in {fn}")
         elif fn == 'NEWS.md':
             efv = re.escape(finalversion)
-            x_re = re.compile(r'^<.+>\s+# NEWS for rsync %s \(UNRELEASED\)\s+## Changes in this version:\n' % efv
+            x_re = re.compile(r'^# NEWS for rsync %s \(UNRELEASED\)\s+## Changes in this version:\n' % efv
                     + r'(\n### PROTOCOL NUMBER:\s+- The protocol number was changed to \d+\.\n)?')
             rel_day = 'UNRELEASED' if pre else today
-            repl = (f'<a name="{finalversion}"></a>\n\n# NEWS for rsync {finalversion} ({rel_day})\n\n'
+            repl = (f'# NEWS for rsync {finalversion} ({rel_day})\n\n'
                 + '## Changes in this version:\n')
             if proto_changed:
                 repl += f'\n### PROTOCOL NUMBER:\n\n - The protocol number was changed to {protocol_version}.\n'