[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (new_formatter)
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/Convert/Plaintext.pm (new_formatter): Propagate two formatter options directly rather than in a loop. |
Date: |
Sun, 26 Nov 2023 13:55:15 -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 8ba1064f85 * tp/Texinfo/Convert/Plaintext.pm (new_formatter):
Propagate two formatter options directly rather than in a loop.
8ba1064f85 is described below
commit 8ba1064f85f5b99fb514ca3cf673c6a20ef8154f
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Nov 26 18:55:05 2023 +0000
* tp/Texinfo/Convert/Plaintext.pm (new_formatter):
Propagate two formatter options directly rather than in a loop.
---
ChangeLog | 5 +++++
tp/Texinfo/Convert/Plaintext.pm | 11 +++++------
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f940ed3546..4b9ba2ad54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-11-26 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/Convert/Plaintext.pm (new_formatter):
+ Propagate two formatter options directly rather than in a loop.
+
2023-11-26 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/Plaintext.pm (new_formatter):
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 19f97a6b0d..878abfc8ac 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -741,13 +741,12 @@ sub new_formatter($$;$)
'upper_case_stack' => [{}],
'font_type_stack' => [{}],
'w' => 0,
- 'frenchspacing_stack' => [ $frenchspacing_conf ],
- 'suppress_styles' => undef,
- 'no_added_eol' => undef};
+ 'frenchspacing_stack' => [ $frenchspacing_conf ],
+ 'suppress_styles' => undef,
+ 'no_added_eol' => undef};
if ($conf) {
- foreach my $configuration ('suppress_styles', 'no_added_eol') {
- $formatter->{$configuration} = $conf->{$configuration};
- }
+ $formatter->{'suppress_styles'} = $conf->{'suppress_styles'};
+ $formatter->{'no_added_eol'} = $conf->{'no_added_eol'};
}
if ($type eq 'unfilled') {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/Plaintext.pm (new_formatter): Propagate two formatter options directly rather than in a loop.,
Gavin D. Smith <=