texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/t/formats_encodings.t (dotless_argument_non_


From: Patrice Dumas
Subject: branch master updated: * tp/t/formats_encodings.t (dotless_argument_non_ascii): add the test of braced non-ascii argument of @dotless.
Date: Sat, 15 Jul 2023 12:44:32 -0400

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 ccb5576fb0 * tp/t/formats_encodings.t (dotless_argument_non_ascii): 
add the test of braced non-ascii argument of @dotless.
ccb5576fb0 is described below

commit ccb5576fb05ec4a0f61e1d0e7a5c628af34bf39c
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Jul 15 18:44:23 2023 +0200

    * tp/t/formats_encodings.t (dotless_argument_non_ascii): add the
    test of braced non-ascii argument of @dotless.
---
 ChangeLog                                          |  5 +++
 tp/t/formats_encodings.t                           |  3 +-
 .../dotless_argument_non_ascii.pl                  | 43 ++++++++++++++++++++--
 3 files changed, 47 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b5dccb4563..7fc935232a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-07-15  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/t/formats_encodings.t (dotless_argument_non_ascii): add the
+       test of braced non-ascii argument of @dotless.
+
 2023-07-15  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/parsetexi/parser.c (process_remaining_on_line)
diff --git a/tp/t/formats_encodings.t b/tp/t/formats_encodings.t
index d959ad4945..c0b6d4167e 100644
--- a/tp/t/formats_encodings.t
+++ b/tp/t/formats_encodings.t
@@ -341,7 +341,8 @@ $accents_text, {'ENABLE_ENCODING' => 1}, 
{'OUTPUT_CHARACTERS' => 1}
 
 @node chap
 @chapter Chapter
-'."\@dotless \x{00EA}
+'."\@dotless{\x{00EA}}
+\@dotless \x{00EA}
 "],
 # numerous LaTeX formatting errors
 ['at_commands_in_refs',
diff --git a/tp/t/results/formats_encodings/dotless_argument_non_ascii.pl 
b/tp/t/results/formats_encodings/dotless_argument_non_ascii.pl
index 50b3829366..52fa25f097 100644
--- a/tp/t/results/formats_encodings/dotless_argument_non_ascii.pl
+++ b/tp/t/results/formats_encodings/dotless_argument_non_ascii.pl
@@ -138,6 +138,28 @@ $result_trees{'dotless_argument_non_ascii'} = {
       'contents' => [
         {
           'contents' => [
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'text' => "\x{ea}"
+                    }
+                  ],
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'dotless',
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 6,
+                'macro' => ''
+              }
+            },
+            {
+              'text' => '
+'
+            },
             {
               'args' => [
                 {
@@ -157,7 +179,7 @@ $result_trees{'dotless_argument_non_ascii'} = {
               },
               'source_info' => {
                 'file_name' => '',
-                'line_nr' => 6,
+                'line_nr' => 7,
                 'macro' => ''
               }
             },
@@ -190,6 +212,7 @@ $result_texis{'dotless_argument_non_ascii'} = '@node Top
 
 @node chap
 @chapter Chapter
+@dotless{ê}
 @dotless ê
 ';
 
@@ -200,6 +223,7 @@ $result_texts{'dotless_argument_non_ascii'} = 'top
 1 Chapter
 *********
 ê
+ê
 ';
 
 $result_sectioning{'dotless_argument_non_ascii'} = {
@@ -301,6 +325,15 @@ $result_errors{'dotless_argument_non_ascii'} = [
     'macro' => '',
     'text' => "\@dotless expects `i' or `j' as argument, not `\x{ea}'",
     'type' => 'error'
+  },
+  {
+    'error_line' => "\@dotless expects `i' or `j' as argument, not `\x{ea}'
+",
+    'file_name' => '',
+    'line_nr' => 7,
+    'macro' => '',
+    'text' => "\@dotless expects `i' or `j' as argument, not `\x{ea}'",
+    'type' => 'error'
   }
 ];
 
@@ -315,7 +348,7 @@ 
$result_converted{'plaintext'}->{'dotless_argument_non_ascii'} = 'top
 1 Chapter
 *********
 
-ê
+ê ê
 ';
 
 
@@ -337,6 +370,7 @@ 
$result_converted{'html_text'}->{'dotless_argument_non_ascii'} = '<div class="to
 </div>
 <h2 class="chapter" id="Chapter"><span>1 Chapter<a class="copiable-link" 
href="#Chapter"> &para;</a></span></h2>
 <p>ê
+ê
 </p></div>
 </div>
 ';
@@ -348,7 +382,8 @@ $result_converted{'xml'}->{'dotless_argument_non_ascii'} = 
'<node name="Top" spa
 </top>
 <node name="chap" spaces=" "><nodename>chap</nodename><nodeprev 
automatic="on">Top</nodeprev><nodeup automatic="on">Top</nodeup></node>
 <chapter spaces=" "><sectiontitle>Chapter</sectiontitle>
-<para><dotless spacesaftercmd=" ">ê</dotless>
+<para><dotless>ê</dotless>
+<dotless spacesaftercmd=" ">ê</dotless>
 </para></chapter>
 ';
 
@@ -356,6 +391,7 @@ $result_converted{'xml'}->{'dotless_argument_non_ascii'} = 
'<node name="Top" spa
 $result_converted{'docbook'}->{'dotless_argument_non_ascii'} = '<chapter 
label="1" id="chap">
 <title>Chapter</title>
 <para>ê
+ê
 </para></chapter>
 ';
 
@@ -365,6 +401,7 @@ 
$result_converted{'latex_text'}->{'dotless_argument_non_ascii'} = '\\begin{docum
 \\chapter{{Chapter}}
 \\label{anchor:chap}%
 ê
+ê
 ';
 
 1;



reply via email to

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