summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1993-10-19 02:50:31 +0000
committerPaul Eggert <eggert@twinsun.com>1993-10-19 02:50:31 +0000
commit1f19b52b5a592b3705be88455b1fe48a19f4302e (patch)
treea4218516186a190983297adb6ac3daec46dc8956 /lib-src
parent76c077475339ccfa407e76190f589c350e2a93da (diff)
downloademacs-1f19b52b5a592b3705be88455b1fe48a19f4302e.tar.gz
(printlogline): Don't generate lines containing only white space.
Diffstat (limited to 'lib-src')
-rwxr-xr-xlib-src/rcs2log9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib-src/rcs2log b/lib-src/rcs2log
index 1ea628afb03..3938b89f1eb 100755
--- a/lib-src/rcs2log
+++ b/lib-src/rcs2log
@@ -12,7 +12,7 @@
# Author: Paul Eggert <eggert@twinsun.com>
-# $Id: rcs2log,v 1.13.1.1 1993/09/24 00:54:33 eggert Exp $
+# $Id: rcs2log,v 1.15 1993/09/24 01:03:32 eggert Exp eggert $
# Copyright 1992, 1993 Free Software Foundation, Inc.
@@ -259,7 +259,12 @@ printlogline='{
# Print each line of the log, transliterating \r to \n.
while ((i = index(Log, CR)) != 0) {
- printf "%s%s\n", sep, substr(Log, 1, i-1)
+ logline = substr(Log, 1, i-1)
+ if (logline ~ /[^ ]/) {
+ printf "%s%s\n", sep, logline
+ } else {
+ print ""
+ }
sep = indent_string
Log = substr(Log, i+1)
}