[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * install-info/install-info.c (output_dirfile): D
From: |
Gavin D. Smith |
Subject: |
branch master updated: * install-info/install-info.c (output_dirfile): Do not insert a blank line before a new section if one is there already. This prevents the number of blank lines continually increasing if a section is repeatedly deleted and inserted. |
Date: |
Sat, 29 Jul 2023 08:00:30 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 8ed5b64537 * install-info/install-info.c (output_dirfile): Do not
insert a blank line before a new section if one is there already. This
prevents the number of blank lines continually increasing if a section is
repeatedly deleted and inserted.
8ed5b64537 is described below
commit 8ed5b64537b41f2b30a332b1a5007d939c4c150d
Author: John Wheeler <wheelerwjx9@runbox.com>
AuthorDate: Sat Jul 29 12:59:32 2023 +0100
* install-info/install-info.c (output_dirfile):
Do not insert a blank line before a new section if one is there
already. This prevents the number of blank lines continually
increasing if a section is repeatedly deleted and inserted.
---
ChangeLog | 7 +++++++
install-info/install-info.c | 4 +++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 4d977f562b..8cfe7ac32b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-07-29 John Wheeler <wheelerwjx9@runbox.com> (tiny change)
+
+ * install-info/install-info.c (output_dirfile):
+ Do not insert a blank line before a new section if one is there
+ already. This prevents the number of blank lines continually
+ increasing if a section is repeatedly deleted and inserted.
+
2023-07-29 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo-tex-test.texi (Index and paragraphs): Remove section
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 150b7c199c..0264010c2b 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -1021,7 +1021,9 @@ output_dirfile (char *dirfile, int dir_nlines, struct
line_data *dir_lines,
{
int k;
- putc ('\n', output);
+ /* If the preceding line is not blank, add a blank line */
+ if (i >= 1 && dir_lines[i - 1].size > 0)
+ putc ('\n', output);
fputs (spec->name, output);
putc ('\n', output);
spec->missing = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * install-info/install-info.c (output_dirfile): Do not insert a blank line before a new section if one is there already. This prevents the number of blank lines continually increasing if a section is repeatedly deleted and inserted.,
Gavin D. Smith <=