From d3fc509df8b249fe2a724187a363f1288b750551 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 31 Oct 2016 16:44:57 +0100 Subject: [PATCH] man_show_fixme.sh: strip extraneous blank line at start of rendered FIXME output Signed-off-by: Michael Kerrisk --- scripts/man_show_fixme.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/man_show_fixme.sh b/scripts/man_show_fixme.sh index 9e1736c20..70d3fbbe0 100644 --- a/scripts/man_show_fixme.sh +++ b/scripts/man_show_fixme.sh @@ -11,6 +11,13 @@ for f in $*; do # ignored by this script } else { sub("FIXME[: ]*", "") + if ($0 ~ /^\.\\\"[ ]*$/) { + + # If the FIXME line contains no additional text after + # "FIXME", then discard the blank line + + getline + } print "" if (fixme == 0) { print ".TS"