From 5753fd73c39a87e7f836bdebfea7a7776958dbec Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 24 Mar 2021 12:52:48 -0400
Subject: [PATCH] wikiheaders.pl: Whitespace fixes.
---
build-scripts/wikiheaders.pl | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index dc332a819..a6422d409 100755
--- a/build-scripts/wikiheaders.pl
+++ b/build-scripts/wikiheaders.pl
@@ -427,6 +427,12 @@ sub usage {
}
close(FH);
+ foreach (keys %sections) {
+ $sections{$_} =~ s/\A\n+//;
+ $sections{$_} =~ s/\n+\Z//;
+ $sections{$_} .= "\n";
+ }
+
if (0) {
foreach (@section_order) {
print("$fn SECTION '$_':\n");