[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <flo
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <float>: Call _add_newline_if_needed instead of checking $self->{'empty_lines_count'} and outputing a newline directly. |
Date: |
Sat, 20 Jan 2024 20:19:55 -0500 |
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 208e6602b2 * tp/Texinfo/Convert/Plaintext.pm (_convert) <float>: Call
_add_newline_if_needed instead of checking $self->{'empty_lines_count'} and
outputing a newline directly.
208e6602b2 is described below
commit 208e6602b284d2323f7b14a29789e6ad1cbd33b9
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Jan 21 01:19:46 2024 +0000
* tp/Texinfo/Convert/Plaintext.pm (_convert) <float>:
Call _add_newline_if_needed instead of checking
$self->{'empty_lines_count'} and outputing a newline directly.
---
ChangeLog | 6 ++++++
tp/Texinfo/Convert/Plaintext.pm | 5 +----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5839cba070..c0fbbb5a74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-01-21 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/Convert/Plaintext.pm (_convert) <float>:
+ Call _add_newline_if_needed instead of checking
+ $self->{'empty_lines_count'} and outputing a newline directly.
+
2024-01-21 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Plaintext.pm (_convert) <empty_line>:
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 1f41b32f2e..896ff81fad 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -3199,10 +3199,7 @@ sub _convert($$)
if ($floats
and $floats->{$float_type}
and scalar(@{$floats->{$float_type}})) {
- if (!$self->{'empty_lines_count'}) {
- _stream_output($self, undef, "\n");
- $lines_count++;
- }
+ $self->_add_newline_if_needed();
_stream_output($self, undef, "* Menu:\n\n");
$lines_count += 2;
foreach my $float (@{$floats->{$float_type}}) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <float>: Call _add_newline_if_needed instead of checking $self->{'empty_lines_count'} and outputing a newline directly.,
Gavin D. Smith <=