[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Config.pm (_GNUT_document_warn, _GNU
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Config.pm (_GNUT_document_warn, _GNUT_document_fatal) (GNUT_set_from_cmdline, texinfo_register_no_arg_command_formatting) (GNUT_get_no_arg_command_formatting) (texinfo_register_style_command_formatting) (GNUT_get_style_command_formatting) (texinfo_register_special_unit_info): remove \n in messages. Remove chomp in _GNUT_document_warn and _GNUT_document_fatal. |
Date: |
Mon, 23 Dec 2024 17:41:05 -0500 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 6330a7f750 * tp/Texinfo/Config.pm (_GNUT_document_warn,
_GNUT_document_fatal) (GNUT_set_from_cmdline,
texinfo_register_no_arg_command_formatting)
(GNUT_get_no_arg_command_formatting)
(texinfo_register_style_command_formatting) (GNUT_get_style_command_formatting)
(texinfo_register_special_unit_info): remove \n in messages. Remove chomp in
_GNUT_document_warn and _GNUT_document_fatal.
6330a7f750 is described below
commit 6330a7f750dde53cbb8cb3b338cc27a1ef1b9caa
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Dec 7 00:06:03 2024 +0100
* tp/Texinfo/Config.pm (_GNUT_document_warn, _GNUT_document_fatal)
(GNUT_set_from_cmdline, texinfo_register_no_arg_command_formatting)
(GNUT_get_no_arg_command_formatting)
(texinfo_register_style_command_formatting)
(GNUT_get_style_command_formatting)
(texinfo_register_special_unit_info): remove \n in messages. Remove
chomp in _GNUT_document_warn and _GNUT_document_fatal.
---
ChangeLog | 10 ++++++++++
tp/Texinfo/Config.pm | 14 ++++++--------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6c2fbe38e8..b8270175d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-12-06 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Config.pm (_GNUT_document_warn, _GNUT_document_fatal)
+ (GNUT_set_from_cmdline, texinfo_register_no_arg_command_formatting)
+ (GNUT_get_no_arg_command_formatting)
+ (texinfo_register_style_command_formatting)
+ (GNUT_get_style_command_formatting)
+ (texinfo_register_special_unit_info): remove \n in messages. Remove
+ chomp in _GNUT_document_warn and _GNUT_document_fatal.
+
2024-12-06 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/convert/html_prepare_converter.c,
diff --git a/tp/Texinfo/Config.pm b/tp/Texinfo/Config.pm
index 9473caa80c..119dfd2949 100644
--- a/tp/Texinfo/Config.pm
+++ b/tp/Texinfo/Config.pm
@@ -135,7 +135,6 @@ sub _GNUT_decode_input($)
sub _GNUT_document_warn($) {
return if (texinfo_get_conf('NO_WARN'));
my $text = shift;
- chomp ($text);
warn(_GNUT_encode_message(
sprintf(__p("program name: warning: warning_message",
"%s: warning: %s"), $real_command_name, $text)."\n"));
@@ -143,7 +142,6 @@ sub _GNUT_document_warn($) {
sub _GNUT_document_fatal($) {
my $text = shift;
- chomp ($text);
warn(_GNUT_encode_message(
sprintf(__p("program name: error_message",
"%s: %s"), $real_command_name, $text)."\n"));
@@ -283,7 +281,7 @@ sub GNUT_set_from_cmdline($$)
delete $init_files_options->{$var};
delete $options_defaults->{$var};
if (!Texinfo::Common::valid_customization_option($var)) {
- _GNUT_document_warn(sprintf(__("unknown variable from command line: %s\n"),
+ _GNUT_document_warn(sprintf(__("unknown variable from command line: %s"),
$var));
return 0;
}
@@ -645,7 +643,7 @@ sub texinfo_register_no_arg_command_formatting($$;$$$$)
if (!defined($context)) {
$context = $default_formatting_context;
} elsif (not defined($GNUT_no_arg_commands_formatting_strings->{$context})) {
- _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s\n"),
+ _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s"),
'texinfo_register_no_arg_command_formatting', $context));
return 0;
}
@@ -681,7 +679,7 @@ sub GNUT_get_no_arg_command_formatting($;$)
if (!defined($context)) {
$context = $default_formatting_context;
} elsif (not defined($GNUT_no_arg_commands_formatting_strings->{$context})) {
- _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s\n"),
+ _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s"),
'GNUT_get_no_arg_command_formatting', $context));
return undef;
}
@@ -703,7 +701,7 @@ sub texinfo_register_style_command_formatting($$;$$)
if (!defined($context)) {
$context = $default_formatting_context;
} elsif (not defined($GNUT_style_commands_formatting_info->{$context})) {
- _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s\n"),
+ _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s"),
'texinfo_register_style_command_formatting', $context));
return 0;
}
@@ -726,7 +724,7 @@ sub GNUT_get_style_command_formatting($;$)
if (!defined($context)) {
$context = $default_formatting_context;
} elsif (not defined($GNUT_style_commands_formatting_info->{$context})) {
- _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s\n"),
+ _GNUT_document_warn(sprintf(__("%s: unknown formatting context %s"),
'GNUT_get_style_command_formatting', $context));
return undef;
}
@@ -835,7 +833,7 @@ sub texinfo_register_special_unit_info($$$)
if (not defined($GNUT_special_unit_info->{$type})) {
_GNUT_document_warn(
- sprintf(__("%s: unknown special element information type %s\n"),
+ sprintf(__("%s: unknown special element information type %s"),
'texinfo_register_special_unit_info', $type));
return 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Config.pm (_GNUT_document_warn, _GNUT_document_fatal) (GNUT_set_from_cmdline, texinfo_register_no_arg_command_formatting) (GNUT_get_no_arg_command_formatting) (texinfo_register_style_command_formatting) (GNUT_get_style_command_formatting) (texinfo_register_special_unit_info): remove \n in messages. Remove chomp in _GNUT_document_warn and _GNUT_document_fatal.,
Patrice Dumas <=