texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/texi2any.pl (document_warn): do not chomp in


From: Patrice Dumas
Subject: branch master updated: * tp/texi2any.pl (document_warn): do not chomp input message. Remove end of lines in document_warn calls.
Date: Mon, 23 Dec 2024 18:33:52 -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 0b543fba81 * tp/texi2any.pl (document_warn): do not chomp input 
message. Remove end of lines in document_warn calls.
0b543fba81 is described below

commit 0b543fba814a6be809f60db51e5115a7a4984bf3
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Dec 21 09:28:05 2024 +0100

    * tp/texi2any.pl (document_warn): do not chomp input message.
    Remove end of lines in document_warn calls.
---
 ChangeLog      | 5 +++++
 tp/texi2any.pl | 5 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bbcbbb9668..d944215f9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-21  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/texi2any.pl (document_warn): do not chomp input message.
+       Remove end of lines in document_warn calls.
+
 2024-12-20  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/teximakehtml.c (set_customization_default): also check
diff --git a/tp/texi2any.pl b/tp/texi2any.pl
index 2ece458b9b..6f2e68e746 100755
--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -574,7 +574,6 @@ sub _encode_message($)
 sub document_warn($) {
   return if (get_conf('NO_WARN'));
   my $text = shift;
-  chomp ($text);
   warn(_encode_message(
        sprintf(__p("program name: warning: warning_message",
                    "%s: warning: %s")."\n", $real_command_name, $text)));
@@ -1852,12 +1851,12 @@ while(@input_files) {
                              $macro_expand_files_information,
                              $encoded_macro_expand_file_name);
       if (!close($macro_expand_fh)) {
-        document_warn(sprintf(__("error on closing macro expand file %s: 
%s\n"),
+        document_warn(sprintf(__("error on closing macro expand file %s: %s"),
                               $macro_expand_file_name, $!));
         $error_macro_expand_file = 1;
       }
     } else {
-      document_warn(sprintf(__("could not open %s for writing: %s\n"),
+      document_warn(sprintf(__("could not open %s for writing: %s"),
                             $macro_expand_file_name, $error_message));
       $error_macro_expand_file = 1;
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]