diff options
| author | Paul Eggert | 1993-10-19 02:50:31 +0000 |
|---|---|---|
| committer | Paul Eggert | 1993-10-19 02:50:31 +0000 |
| commit | 1f19b52b5a592b3705be88455b1fe48a19f4302e (patch) | |
| tree | a4218516186a190983297adb6ac3daec46dc8956 /lib-src | |
| parent | 76c077475339ccfa407e76190f589c350e2a93da (diff) | |
| download | emacs-1f19b52b5a592b3705be88455b1fe48a19f4302e.tar.gz emacs-1f19b52b5a592b3705be88455b1fe48a19f4302e.zip | |
(printlogline): Don't generate lines containing only white space.
Diffstat (limited to 'lib-src')
| -rwxr-xr-x | lib-src/rcs2log | 9 |
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 @@ | |||
| 12 | 12 | ||
| 13 | # Author: Paul Eggert <eggert@twinsun.com> | 13 | # Author: Paul Eggert <eggert@twinsun.com> |
| 14 | 14 | ||
| 15 | # $Id: rcs2log,v 1.13.1.1 1993/09/24 00:54:33 eggert Exp $ | 15 | # $Id: rcs2log,v 1.15 1993/09/24 01:03:32 eggert Exp eggert $ |
| 16 | 16 | ||
| 17 | # Copyright 1992, 1993 Free Software Foundation, Inc. | 17 | # Copyright 1992, 1993 Free Software Foundation, Inc. |
| 18 | 18 | ||
| @@ -259,7 +259,12 @@ printlogline='{ | |||
| 259 | 259 | ||
| 260 | # Print each line of the log, transliterating \r to \n. | 260 | # Print each line of the log, transliterating \r to \n. |
| 261 | while ((i = index(Log, CR)) != 0) { | 261 | while ((i = index(Log, CR)) != 0) { |
| 262 | printf "%s%s\n", sep, substr(Log, 1, i-1) | 262 | logline = substr(Log, 1, i-1) |
| 263 | if (logline ~ /[^ ]/) { | ||
| 264 | printf "%s%s\n", sep, logline | ||
| 265 | } else { | ||
| 266 | print "" | ||
| 267 | } | ||
| 263 | sep = indent_string | 268 | sep = indent_string |
| 264 | Log = substr(Log, i+1) | 269 | Log = substr(Log, i+1) |
| 265 | } | 270 | } |