texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Mon, 24 Jul 2023 17:50:17 -0400 (EDT)

branch: master
commit 122e6287e8a6bcdfe9edd3a8230f2edfec4774a8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Jul 24 23:50:04 2023 +0200

    * tp/Texinfo/Convert/Plaintext.pm (_convert): add a space after
    a menu entry before the added menu entry description if there is none.
    
    * tp/Texinfo/Convert/Plaintext.pm: change in spacing.
    
    * tp/t/10menu.t (nodedescription_descriptions): more tests with
    long node and name entries.
---
 ChangeLog                                         |  10 +
 tp/TODO                                           |   4 +
 tp/Texinfo/Convert/Plaintext.pm                   |  16 +-
 tp/t/10menu.t                                     |  20 +-
 tp/t/results/menu/nodedescription_descriptions.pl | 970 +++++++++++++++++++---
 5 files changed, 902 insertions(+), 118 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fc9892b116..40bca8ccd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2023-07-24  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/Plaintext.pm (_convert): add a space after
+       a menu entry before the added menu entry description if there is none.
+
+       * tp/Texinfo/Convert/Plaintext.pm: change in spacing.
+
+       * tp/t/10menu.t (nodedescription_descriptions): more tests with
+       long node and name entries.
+
 2023-07-24  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/ParagraphNonXS.pm (_add_pending_word, _add_next):
diff --git a/tp/TODO b/tp/TODO
index bba708b5c5..65c4e62466 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -10,6 +10,10 @@ This is the todo list for texi2any
 Before next release
 ===================
 
+comment on linemacro call at top level comments until end of line.
+
+ParagraphNonXS different from XS for punctuation, check if bug/difference.
+
 Bugs
 ====
 
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 3e8e55e919..b46e2dfbf6 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -1141,8 +1141,8 @@ sub _align_lines($$$$$$)
       } else {
         my $spaces_prepended
          = _compute_spaces_align_line($line_width, $max_column, $direction);
-        $result .= ' ' x$spaces_prepended . $line ."\n";
-        $line_bytes_begin += count_bytes($self, ' ' x$spaces_prepended);
+        $result .= ' ' x $spaces_prepended . $line ."\n";
+        $line_bytes_begin += count_bytes($self, ' ' x $spaces_prepended);
         $line_bytes_end += count_bytes($self, "\n");
         $bytes_count += $line_bytes_begin + $line_bytes_end
                         + count_bytes($self, $line);
@@ -1160,8 +1160,8 @@ sub _align_lines($$$$$$)
             - $image->{'image_width'};
         $prepended_spaces = 0 if ($prepended_spaces < 0);
       }
-      $result .= ' ' x$prepended_spaces . $line;
-      $line_bytes_begin += count_bytes($self, ' ' x$prepended_spaces);
+      $result .= ' ' x $prepended_spaces . $line;
+      $line_bytes_begin += count_bytes($self, ' ' x $prepended_spaces);
       $bytes_count += $line_bytes_begin + count_bytes($self, $line);
       if ($new_image) {
         $image = $new_image;
@@ -2175,7 +2175,7 @@ sub _convert($$)
                   {'text' => "$post_quote: "}]});
             $name_text =~ s/^(\s*)/$1$pre_quote/ if $pre_quote;
             $result .= $name_text;
-            _count_added($self,$self->{'formatters'}[-1]{'container'},
+            _count_added($self, $self->{'formatters'}[-1]{'container'},
                          $pre_quote)
               if $pre_quote;
           }
@@ -3475,6 +3475,10 @@ sub _convert($$)
                   'counter'
              => 
Texinfo::Convert::Paragraph::counter($formatter->{'container'}),
                 });
+            if ($result !~ /\s$/) {
+              $result .= _count_added($self, $description_para->{'container'},
+                               add_text($description_para->{'container'}, ' 
'));
+            }
             push @{$self->{'formatters'}}, $description_para;
             $result .= _convert($self, $description_element->{'args'}->[0]);
             $result .= _count_added($self, $description_para->{'container'},
@@ -3640,7 +3644,7 @@ sub _convert($$)
       if ($self->{'format_context'}->[-1]->{'item_command'} eq 'headitem') {
         # at this point cell_beginning is at the beginning of
         # the cell following the end of the table -> full width
-        my $line = ' ' x $indent_len . '-' x $cell_beginning . "\n";
+        my $line = (' ' x $indent_len) . ('-' x $cell_beginning) . "\n";
         $bytes_count += count_bytes($self, $line);
         $result .= $line;
         $self->{'empty_lines_count'} = 0;
diff --git a/tp/t/10menu.t b/tp/t/10menu.t
index 8a3dc74893..f8707b5a86 100644
--- a/tp/t/10menu.t
+++ b/tp/t/10menu.t
@@ -523,6 +523,9 @@ Text
 * name of other: other.
 
 * name of last: last. desc of last
+* a somewhat long node without description nor following space::
+* a very long node without description with little space left for::
+* very very long node extending past the max columns and without description::
 @end menu
 
 @node toto
@@ -544,7 +547,22 @@ Text
 @chapter Last
 
 @nodedescription we are last
-']
+
+@node a somewhat long node without description nor following space
+@chapter Somewhat long
+
+@nodedescription not as long as the node
+
+@node a very long node without description with little space left for
+@chapter Very long
+
+@nodedescription starting the desciption with a somewhat long word
+
+@node very very long node extending past the max columns and without 
description
+@chapter Past max columns
+
+@nodedescription Not long
+'],
 );
 
 my @test_invalid = (
diff --git a/tp/t/results/menu/nodedescription_descriptions.pl 
b/tp/t/results/menu/nodedescription_descriptions.pl
index 4c6aa403bd..df27e6c8ba 100644
--- a/tp/t/results/menu/nodedescription_descriptions.pl
+++ b/tp/t/results/menu/nodedescription_descriptions.pl
@@ -303,6 +303,144 @@ $result_trees{'nodedescription_descriptions'} = {
               },
               'type' => 'menu_entry'
             },
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'a somewhat long node without description nor 
following space'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 
'a-somewhat-long-node-without-description-nor-following-space'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 10,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'a very long node without description with 
little space left for'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 
'a-very-long-node-without-description-with-little-space-left-for'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 11,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'text' => 'very very long node extending past the max 
columns and without description'
+                    }
+                  ],
+                  'extra' => {
+                    'node_content' => [
+                      {}
+                    ],
+                    'normalized' => 
'very-very-long-node-extending-past-the-max-columns-and-without-description'
+                  },
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => '
+'
+                        }
+                      ],
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 12,
+                'macro' => ''
+              },
+              'type' => 'menu_entry'
+            },
             {
               'args' => [
                 {
@@ -320,28 +458,414 @@ $result_trees{'nodedescription_descriptions'} = {
                   'type' => 'line_arg'
                 }
               ],
-              'cmdname' => 'end',
-              'extra' => {
-                'text_arg' => 'menu'
-              },
+              'cmdname' => 'end',
+              'extra' => {
+                'text_arg' => 'menu'
+              },
+              'info' => {
+                'spaces_before_argument' => {
+                  'text' => ' '
+                }
+              },
+              'source_info' => {
+                'file_name' => '',
+                'line_nr' => 13,
+                'macro' => ''
+              }
+            }
+          ],
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 4,
+            'macro' => ''
+          }
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'toto'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_description' => {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'text' => 'toto is there:: and the '
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => 'is a description'
+                        }
+                      ],
+                      'type' => 'brace_command_arg'
+                    }
+                  ],
+                  'cmdname' => 'emph',
+                  'source_info' => {
+                    'file_name' => '',
+                    'line_nr' => 18,
+                    'macro' => ''
+                  }
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => 'slightly long'
+                        }
+                      ],
+                      'type' => 'brace_command_arg'
+                    }
+                  ],
+                  'cmdname' => 'w',
+                  'source_info' => {
+                    'file_name' => '',
+                    'line_nr' => 18,
+                    'macro' => ''
+                  }
+                },
+                {
+                  'text' => ' and :vv somewhat: '
+                },
+                {
+                  'args' => [
+                    {
+                      'contents' => [
+                        {
+                          'text' => 'a'
+                        }
+                      ],
+                      'type' => 'following_arg'
+                    }
+                  ],
+                  'cmdname' => 'ringaccent',
+                  'info' => {
+                    'spaces_after_cmd_before_arg' => {
+                      'text' => ' '
+                    }
+                  },
+                  'source_info' => {
+                    'file_name' => '',
+                    'line_nr' => 18,
+                    'macro' => ''
+                  }
+                },
+                {
+                  'text' => 'nexpected'
+                }
+              ],
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'line_arg'
+            }
+          ],
+          'cmdname' => 'nodedescription',
+          'extra' => {
+            'element_node' => {}
+          },
+          'info' => {
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 18,
+            'macro' => ''
+          }
+        },
+        'normalized' => 'toto'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 15,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Toto'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {},
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 16,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'titi'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_description' => {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'text' => 'this describes titi'
+                }
+              ],
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'line_arg'
+            }
+          ],
+          'cmdname' => 'nodedescription',
+          'extra' => {
+            'element_node' => {}
+          },
+          'info' => {
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
+          'source_info' => {
+            'file_name' => '',
+            'line_nr' => 23,
+            'macro' => ''
+          }
+        },
+        'normalized' => 'titi'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 20,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Titi'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {},
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 21,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'other'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'node_description' => {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'text' => 'other comes here'
+                }
+              ],
               'info' => {
-                'spaces_before_argument' => {
-                  'text' => ' '
+                'spaces_after_argument' => {
+                  'text' => '
+'
                 }
               },
-              'source_info' => {
-                'file_name' => '',
-                'line_nr' => 10,
-                'macro' => ''
-              }
+              'type' => 'line_arg'
             }
           ],
+          'cmdname' => 'nodedescription',
+          'extra' => {
+            'element_node' => {}
+          },
+          'info' => {
+            'spaces_before_argument' => {
+              'text' => ' '
+            }
+          },
           'source_info' => {
             'file_name' => '',
-            'line_nr' => 4,
+            'line_nr' => 28,
             'macro' => ''
           }
         },
+        'normalized' => 'other'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'file_name' => '',
+        'line_nr' => 25,
+        'macro' => ''
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Other'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {},
         {
           'text' => '
 ',
@@ -356,7 +880,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 2,
+        'line_nr' => 26,
         'macro' => ''
       }
     },
@@ -365,7 +889,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'toto'
+              'text' => 'last'
             }
           ],
           'info' => {
@@ -384,72 +908,7 @@ $result_trees{'nodedescription_descriptions'} = {
             {
               'contents' => [
                 {
-                  'text' => 'toto is there:: and the '
-                },
-                {
-                  'args' => [
-                    {
-                      'contents' => [
-                        {
-                          'text' => 'is a description'
-                        }
-                      ],
-                      'type' => 'brace_command_arg'
-                    }
-                  ],
-                  'cmdname' => 'emph',
-                  'source_info' => {
-                    'file_name' => '',
-                    'line_nr' => 15,
-                    'macro' => ''
-                  }
-                },
-                {
-                  'args' => [
-                    {
-                      'contents' => [
-                        {
-                          'text' => 'slightly long'
-                        }
-                      ],
-                      'type' => 'brace_command_arg'
-                    }
-                  ],
-                  'cmdname' => 'w',
-                  'source_info' => {
-                    'file_name' => '',
-                    'line_nr' => 15,
-                    'macro' => ''
-                  }
-                },
-                {
-                  'text' => ' and :vv somewhat: '
-                },
-                {
-                  'args' => [
-                    {
-                      'contents' => [
-                        {
-                          'text' => 'a'
-                        }
-                      ],
-                      'type' => 'following_arg'
-                    }
-                  ],
-                  'cmdname' => 'ringaccent',
-                  'info' => {
-                    'spaces_after_cmd_before_arg' => {
-                      'text' => ' '
-                    }
-                  },
-                  'source_info' => {
-                    'file_name' => '',
-                    'line_nr' => 15,
-                    'macro' => ''
-                  }
-                },
-                {
-                  'text' => 'nexpected'
+                  'text' => 'we are last'
                 }
               ],
               'info' => {
@@ -472,11 +931,11 @@ $result_trees{'nodedescription_descriptions'} = {
           },
           'source_info' => {
             'file_name' => '',
-            'line_nr' => 15,
+            'line_nr' => 33,
             'macro' => ''
           }
         },
-        'normalized' => 'toto'
+        'normalized' => 'last'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -485,7 +944,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 12,
+        'line_nr' => 30,
         'macro' => ''
       }
     },
@@ -494,7 +953,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'Toto'
+              'text' => 'Last'
             }
           ],
           'info' => {
@@ -528,7 +987,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 13,
+        'line_nr' => 31,
         'macro' => ''
       }
     },
@@ -537,7 +996,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'titi'
+              'text' => 'a somewhat long node without description nor 
following space'
             }
           ],
           'info' => {
@@ -556,7 +1015,7 @@ $result_trees{'nodedescription_descriptions'} = {
             {
               'contents' => [
                 {
-                  'text' => 'this describes titi'
+                  'text' => 'not as long as the node'
                 }
               ],
               'info' => {
@@ -579,11 +1038,11 @@ $result_trees{'nodedescription_descriptions'} = {
           },
           'source_info' => {
             'file_name' => '',
-            'line_nr' => 20,
+            'line_nr' => 38,
             'macro' => ''
           }
         },
-        'normalized' => 'titi'
+        'normalized' => 
'a-somewhat-long-node-without-description-nor-following-space'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -592,7 +1051,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 17,
+        'line_nr' => 35,
         'macro' => ''
       }
     },
@@ -601,7 +1060,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'Titi'
+              'text' => 'Somewhat long'
             }
           ],
           'info' => {
@@ -635,7 +1094,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 18,
+        'line_nr' => 36,
         'macro' => ''
       }
     },
@@ -644,7 +1103,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'other'
+              'text' => 'a very long node without description with little 
space left for'
             }
           ],
           'info' => {
@@ -663,7 +1122,7 @@ $result_trees{'nodedescription_descriptions'} = {
             {
               'contents' => [
                 {
-                  'text' => 'other comes here'
+                  'text' => 'starting the desciption with a somewhat long word'
                 }
               ],
               'info' => {
@@ -686,11 +1145,11 @@ $result_trees{'nodedescription_descriptions'} = {
           },
           'source_info' => {
             'file_name' => '',
-            'line_nr' => 25,
+            'line_nr' => 43,
             'macro' => ''
           }
         },
-        'normalized' => 'other'
+        'normalized' => 
'a-very-long-node-without-description-with-little-space-left-for'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -699,7 +1158,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 22,
+        'line_nr' => 40,
         'macro' => ''
       }
     },
@@ -708,7 +1167,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'Other'
+              'text' => 'Very long'
             }
           ],
           'info' => {
@@ -742,7 +1201,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 23,
+        'line_nr' => 41,
         'macro' => ''
       }
     },
@@ -751,7 +1210,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'last'
+              'text' => 'very very long node extending past the max columns 
and without description'
             }
           ],
           'info' => {
@@ -770,7 +1229,7 @@ $result_trees{'nodedescription_descriptions'} = {
             {
               'contents' => [
                 {
-                  'text' => 'we are last'
+                  'text' => 'Not long'
                 }
               ],
               'info' => {
@@ -793,11 +1252,11 @@ $result_trees{'nodedescription_descriptions'} = {
           },
           'source_info' => {
             'file_name' => '',
-            'line_nr' => 30,
+            'line_nr' => 48,
             'macro' => ''
           }
         },
-        'normalized' => 'last'
+        'normalized' => 
'very-very-long-node-extending-past-the-max-columns-and-without-description'
       },
       'info' => {
         'spaces_before_argument' => {
@@ -806,7 +1265,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 27,
+        'line_nr' => 45,
         'macro' => ''
       }
     },
@@ -815,7 +1274,7 @@ $result_trees{'nodedescription_descriptions'} = {
         {
           'contents' => [
             {
-              'text' => 'Last'
+              'text' => 'Past max columns'
             }
           ],
           'info' => {
@@ -844,7 +1303,7 @@ $result_trees{'nodedescription_descriptions'} = {
       },
       'source_info' => {
         'file_name' => '',
-        'line_nr' => 28,
+        'line_nr' => 46,
         'macro' => ''
       }
     }
@@ -855,6 +1314,9 @@ 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'con
 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[1]{'contents'}[0];
 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'contents'}[3]{'contents'}[0];
 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[4]{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[4]{'contents'}[3]{'contents'}[0];
+$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[5]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[5]{'contents'}[1]{'contents'}[0];
+$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[6]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[6]{'contents'}[1]{'contents'}[0];
+$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[7]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'nodedescription_descriptions'}{'contents'}[2]{'contents'}[1]{'contents'}[7]{'contents'}[1]{'contents'}[0];
 
$result_trees{'nodedescription_descriptions'}{'contents'}[3]{'extra'}{'node_description'}{'extra'}{'element_node'}
 = $result_trees{'nodedescription_descriptions'}{'contents'}[3];
 $result_trees{'nodedescription_descriptions'}{'contents'}[4]{'contents'}[1] = 
$result_trees{'nodedescription_descriptions'}{'contents'}[3]{'extra'}{'node_description'};
 
$result_trees{'nodedescription_descriptions'}{'contents'}[5]{'extra'}{'node_description'}{'extra'}{'element_node'}
 = $result_trees{'nodedescription_descriptions'}{'contents'}[5];
@@ -863,6 +1325,12 @@ 
$result_trees{'nodedescription_descriptions'}{'contents'}[7]{'extra'}{'node_desc
 $result_trees{'nodedescription_descriptions'}{'contents'}[8]{'contents'}[1] = 
$result_trees{'nodedescription_descriptions'}{'contents'}[7]{'extra'}{'node_description'};
 
$result_trees{'nodedescription_descriptions'}{'contents'}[9]{'extra'}{'node_description'}{'extra'}{'element_node'}
 = $result_trees{'nodedescription_descriptions'}{'contents'}[9];
 $result_trees{'nodedescription_descriptions'}{'contents'}[10]{'contents'}[1] = 
$result_trees{'nodedescription_descriptions'}{'contents'}[9]{'extra'}{'node_description'};
+$result_trees{'nodedescription_descriptions'}{'contents'}[11]{'extra'}{'node_description'}{'extra'}{'element_node'}
 = $result_trees{'nodedescription_descriptions'}{'contents'}[11];
+$result_trees{'nodedescription_descriptions'}{'contents'}[12]{'contents'}[1] = 
$result_trees{'nodedescription_descriptions'}{'contents'}[11]{'extra'}{'node_description'};
+$result_trees{'nodedescription_descriptions'}{'contents'}[13]{'extra'}{'node_description'}{'extra'}{'element_node'}
 = $result_trees{'nodedescription_descriptions'}{'contents'}[13];
+$result_trees{'nodedescription_descriptions'}{'contents'}[14]{'contents'}[1] = 
$result_trees{'nodedescription_descriptions'}{'contents'}[13]{'extra'}{'node_description'};
+$result_trees{'nodedescription_descriptions'}{'contents'}[15]{'extra'}{'node_description'}{'extra'}{'element_node'}
 = $result_trees{'nodedescription_descriptions'}{'contents'}[15];
+$result_trees{'nodedescription_descriptions'}{'contents'}[16]{'contents'}[1] = 
$result_trees{'nodedescription_descriptions'}{'contents'}[15]{'extra'}{'node_description'};
 
 $result_texis{'nodedescription_descriptions'} = '@node Top
 @top test of nodedescription used in menu
@@ -873,6 +1341,9 @@ $result_texis{'nodedescription_descriptions'} = '@node Top
 * name of other: other.
 
 * name of last: last. desc of last
+* a somewhat long node without description nor following space::
+* a very long node without description with little space left for::
+* very very long node extending past the max columns and without description::
 @end menu
 
 @node toto
@@ -894,6 +1365,21 @@ $result_texis{'nodedescription_descriptions'} = '@node Top
 @chapter Last
 
 @nodedescription we are last
+
+@node a somewhat long node without description nor following space
+@chapter Somewhat long
+
+@nodedescription not as long as the node
+
+@node a very long node without description with little space left for
+@chapter Very long
+
+@nodedescription starting the desciption with a somewhat long word
+
+@node very very long node extending past the max columns and without 
description
+@chapter Past max columns
+
+@nodedescription Not long
 ';
 
 
@@ -905,6 +1391,9 @@ $result_texts{'nodedescription_descriptions'} = 'test of 
nodedescription used in
 * name of other: other.
 
 * name of last: last. desc of last
+* a somewhat long node without description nor following space::
+* a very long node without description with little space left for::
+* very very long node extending past the max columns and without description::
 
 1 Toto
 ******
@@ -921,6 +1410,18 @@ $result_texts{'nodedescription_descriptions'} = 'test of 
nodedescription used in
 4 Last
 ******
 
+
+5 Somewhat long
+***************
+
+
+6 Very long
+***********
+
+
+7 Past max columns
+******************
+
 ';
 
 $result_sectioning{'nodedescription_descriptions'} = {
@@ -1017,6 +1518,66 @@ $result_sectioning{'nodedescription_descriptions'} = {
                 'toplevel_prev' => {},
                 'toplevel_up' => {}
               }
+            },
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 
'a-somewhat-long-node-without-description-nor-following-space'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 5,
+                'section_prev' => {},
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            },
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 
'a-very-long-node-without-description-with-little-space-left-for'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 6,
+                'section_prev' => {},
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
+            },
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 
'very-very-long-node-extending-past-the-max-columns-and-without-description'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 1,
+                'section_number' => 7,
+                'section_prev' => {},
+                'section_up' => {},
+                'toplevel_prev' => {},
+                'toplevel_up' => {}
+              }
             }
           ],
           'section_level' => 0,
@@ -1042,6 +1603,18 @@ 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'
 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[3]{'structure'}{'section_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[3]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[2];
 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[3]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[4]{'structure'}{'section_prev'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[3];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[4]{'structure'}{'section_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[4]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[3];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[4]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[5]{'structure'}{'section_prev'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[4];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[5]{'structure'}{'section_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[5]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[4];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[5]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[6]{'structure'}{'section_prev'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[5];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[6]{'structure'}{'section_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[6]{'structure'}{'toplevel_prev'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[5];
+$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[6]{'structure'}{'toplevel_up'}
 = 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0];
 
$result_sectioning{'nodedescription_descriptions'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'nodedescription_descriptions'};
 
 $result_nodes{'nodedescription_descriptions'} = {
@@ -1112,6 +1685,57 @@ $result_nodes{'nodedescription_descriptions'} = {
                     'normalized' => 'last'
                   },
                   'structure' => {
+                    'node_next' => {
+                      'cmdname' => 'node',
+                      'extra' => {
+                        'associated_section' => {
+                          'cmdname' => 'chapter',
+                          'extra' => {},
+                          'structure' => {
+                            'section_number' => 5
+                          }
+                        },
+                        'normalized' => 
'a-somewhat-long-node-without-description-nor-following-space'
+                      },
+                      'structure' => {
+                        'node_next' => {
+                          'cmdname' => 'node',
+                          'extra' => {
+                            'associated_section' => {
+                              'cmdname' => 'chapter',
+                              'extra' => {},
+                              'structure' => {
+                                'section_number' => 6
+                              }
+                            },
+                            'normalized' => 
'a-very-long-node-without-description-with-little-space-left-for'
+                          },
+                          'structure' => {
+                            'node_next' => {
+                              'cmdname' => 'node',
+                              'extra' => {
+                                'associated_section' => {
+                                  'cmdname' => 'chapter',
+                                  'extra' => {},
+                                  'structure' => {
+                                    'section_number' => 7
+                                  }
+                                },
+                                'normalized' => 
'very-very-long-node-extending-past-the-max-columns-and-without-description'
+                              },
+                              'structure' => {
+                                'node_prev' => {},
+                                'node_up' => {}
+                              }
+                            },
+                            'node_prev' => {},
+                            'node_up' => {}
+                          }
+                        },
+                        'node_prev' => {},
+                        'node_up' => {}
+                      }
+                    },
                     'node_prev' => {},
                     'node_up' => {}
                   }
@@ -1131,6 +1755,12 @@ $result_nodes{'nodedescription_descriptions'} = {
     'node_next' => {}
   }
 };
+$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'};
+$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'nodedescription_descriptions'};
+$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'};
+$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'nodedescription_descriptions'};
+$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'};
+$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'nodedescription_descriptions'};
 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'};
 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_up'}
 = $result_nodes{'nodedescription_descriptions'};
 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'}{'structure'}{'node_next'}{'structure'}{'node_prev'}
 = 
$result_nodes{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'node_next'};
@@ -1171,6 +1801,45 @@ $result_menus{'nodedescription_descriptions'} = {
                     'normalized' => 'last'
                   },
                   'structure' => {
+                    'menu_next' => {
+                      'cmdname' => 'node',
+                      'extra' => {
+                        'normalized' => 
'a-somewhat-long-node-without-description-nor-following-space'
+                      },
+                      'structure' => {
+                        'menu_next' => {
+                          'cmdname' => 'node',
+                          'extra' => {
+                            'normalized' => 
'a-very-long-node-without-description-with-little-space-left-for'
+                          },
+                          'structure' => {
+                            'menu_next' => {
+                              'cmdname' => 'node',
+                              'extra' => {
+                                'normalized' => 
'very-very-long-node-extending-past-the-max-columns-and-without-description'
+                              },
+                              'structure' => {
+                                'menu_prev' => {},
+                                'menu_up' => {},
+                                'menu_up_hash' => {
+                                  'Top' => 1
+                                }
+                              }
+                            },
+                            'menu_prev' => {},
+                            'menu_up' => {},
+                            'menu_up_hash' => {
+                              'Top' => 1
+                            }
+                          }
+                        },
+                        'menu_prev' => {},
+                        'menu_up' => {},
+                        'menu_up_hash' => {
+                          'Top' => 1
+                        }
+                      }
+                    },
                     'menu_prev' => {},
                     'menu_up' => {},
                     'menu_up_hash' => {
@@ -1200,6 +1869,12 @@ $result_menus{'nodedescription_descriptions'} = {
     }
   }
 };
+$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'};
+$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'nodedescription_descriptions'};
+$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'};
+$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'nodedescription_descriptions'};
+$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'};
+$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'nodedescription_descriptions'};
 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'};
 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_up'}
 = $result_menus{'nodedescription_descriptions'};
 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'}{'structure'}{'menu_next'}{'structure'}{'menu_prev'}
 = 
$result_menus{'nodedescription_descriptions'}{'structure'}{'menu_child'}{'structure'}{'menu_next'};
@@ -1213,7 +1888,7 @@ $result_errors{'nodedescription_descriptions'} = [
     'error_line' => 'unknown command `ver\'
 ',
     'file_name' => '',
-    'line_nr' => 15,
+    'line_nr' => 18,
     'macro' => '',
     'text' => 'unknown command `ver\'',
     'type' => 'error'
@@ -1222,7 +1897,7 @@ $result_errors{'nodedescription_descriptions'} = [
     'error_line' => 'misplaced {
 ',
     'file_name' => '',
-    'line_nr' => 15,
+    'line_nr' => 18,
     'macro' => '',
     'text' => 'misplaced {',
     'type' => 'error'
@@ -1231,7 +1906,7 @@ $result_errors{'nodedescription_descriptions'} = [
     'error_line' => 'misplaced }
 ',
     'file_name' => '',
-    'line_nr' => 15,
+    'line_nr' => 18,
     'macro' => '',
     'text' => 'misplaced }',
     'type' => 'error'
@@ -1255,6 +1930,13 @@ 
$result_converted{'plaintext'}->{'nodedescription_descriptions'} = 'test of node
 * name of other: other.        other comes here
 
 * name of last: last. desc of last
+* a somewhat long node without description nor following space:: not as
+                               long as the node
+* a very long node without description with little space left for::
+                               starting the desciption with a somewhat
+                               long word
+* very very long node extending past the max columns and without description::
+                               Not long
 
 1 Toto
 ******
@@ -1268,6 +1950,15 @@ 
$result_converted{'plaintext'}->{'nodedescription_descriptions'} = 'test of node
 4 Last
 ******
 
+5 Somewhat long
+***************
+
+6 Very long
+***********
+
+7 Past max columns
+******************
+
 ';
 
 
@@ -1318,6 +2009,12 @@ Next: <a href="#toto" accesskey="n" rel="next">Toto</a> 
&nbsp; </p>
 
 </pre></th></tr><tr><td class="menu-entry-destination">&bull; <a href="#last" 
accesskey="4">name of last</a>:</td><td>&nbsp;&nbsp;</td><td 
class="menu-entry-description">desc of last
 </td></tr>
+<tr><td class="menu-entry-destination">&bull; <a 
href="#a-somewhat-long-node-without-description-nor-following-space" 
accesskey="5">a somewhat long node without description nor following 
space</a>:</td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
+</td></tr>
+<tr><td class="menu-entry-destination">&bull; <a 
href="#a-very-long-node-without-description-with-little-space-left-for" 
accesskey="6">a very long node without description with little space left 
for</a>:</td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
+</td></tr>
+<tr><td class="menu-entry-destination">&bull; <a 
href="#very-very-long-node-extending-past-the-max-columns-and-without-description"
 accesskey="7">very very long node extending past the max columns and without 
description</a>:</td><td>&nbsp;&nbsp;</td><td class="menu-entry-description">
+</td></tr>
 </table>
 
 <hr>
@@ -1354,10 +2051,40 @@ Next: <a href="#last" accesskey="n" 
rel="next">Last</a>, Previous: <a href="#tit
 <div class="chapter-level-extent" id="last">
 <div class="nav-panel">
 <p>
-Previous: <a href="#other" accesskey="p" rel="prev">Other</a>, Up: <a 
href="#Top" accesskey="u" rel="up">test of nodedescription used in menu</a> 
&nbsp; </p>
+Next: <a href="#a-somewhat-long-node-without-description-nor-following-space" 
accesskey="n" rel="next">Somewhat long</a>, Previous: <a href="#other" 
accesskey="p" rel="prev">Other</a>, Up: <a href="#Top" accesskey="u" 
rel="up">test of nodedescription used in menu</a> &nbsp; </p>
 </div>
 <h2 class="chapter" id="Last"><span>4 Last<a class="copiable-link" 
href="#Last"> &para;</a></span></h2>
 
+
+<hr>
+</div>
+<div class="chapter-level-extent" 
id="a-somewhat-long-node-without-description-nor-following-space">
+<div class="nav-panel">
+<p>
+Next: <a 
href="#a-very-long-node-without-description-with-little-space-left-for" 
accesskey="n" rel="next">Very long</a>, Previous: <a href="#last" accesskey="p" 
rel="prev">Last</a>, Up: <a href="#Top" accesskey="u" rel="up">test of 
nodedescription used in menu</a> &nbsp; </p>
+</div>
+<h2 class="chapter" id="Somewhat-long"><span>5 Somewhat long<a 
class="copiable-link" href="#Somewhat-long"> &para;</a></span></h2>
+
+
+<hr>
+</div>
+<div class="chapter-level-extent" 
id="a-very-long-node-without-description-with-little-space-left-for">
+<div class="nav-panel">
+<p>
+Next: <a 
href="#very-very-long-node-extending-past-the-max-columns-and-without-description"
 accesskey="n" rel="next">Past max columns</a>, Previous: <a 
href="#a-somewhat-long-node-without-description-nor-following-space" 
accesskey="p" rel="prev">Somewhat long</a>, Up: <a href="#Top" accesskey="u" 
rel="up">test of nodedescription used in menu</a> &nbsp; </p>
+</div>
+<h2 class="chapter" id="Very-long"><span>6 Very long<a class="copiable-link" 
href="#Very-long"> &para;</a></span></h2>
+
+
+<hr>
+</div>
+<div class="chapter-level-extent" 
id="very-very-long-node-extending-past-the-max-columns-and-without-description">
+<div class="nav-panel">
+<p>
+Previous: <a 
href="#a-very-long-node-without-description-with-little-space-left-for" 
accesskey="p" rel="prev">Very long</a>, Up: <a href="#Top" accesskey="u" 
rel="up">test of nodedescription used in menu</a> &nbsp; </p>
+</div>
+<h2 class="chapter" id="Past-max-columns"><span>7 Past max columns<a 
class="copiable-link" href="#Past-max-columns"> &para;</a></span></h2>
+
 </div>
 </div>
 
@@ -1377,6 +2104,9 @@ 
$result_converted{'xml'}->{'nodedescription_descriptions'} = '<node name="Top" s
 </pre></menudescription></menuentry><menuentry><menuleadingtext>* 
</menuleadingtext><menutitle>name of other</menutitle><menuseparator>: 
</menuseparator><menunode>other</menunode><menuseparator>.</menuseparator><menudescription><pre
 xml:space="preserve">
 </pre></menudescription></menuentry><menucomment><pre xml:space="preserve">
 </pre></menucomment><menuentry><menuleadingtext>* 
</menuleadingtext><menutitle>name of last</menutitle><menuseparator>: 
</menuseparator><menunode>last</menunode><menuseparator>. 
</menuseparator><menudescription><pre xml:space="preserve">desc of last
+</pre></menudescription></menuentry><menuentry><menuleadingtext>* 
</menuleadingtext><menunode>a somewhat long node without description nor 
following 
space</menunode><menuseparator>::</menuseparator><menudescription><pre 
xml:space="preserve">
+</pre></menudescription></menuentry><menuentry><menuleadingtext>* 
</menuleadingtext><menunode>a very long node without description with little 
space left for</menunode><menuseparator>::</menuseparator><menudescription><pre 
xml:space="preserve">
+</pre></menudescription></menuentry><menuentry><menuleadingtext>* 
</menuleadingtext><menunode>very very long node extending past the max columns 
and without 
description</menunode><menuseparator>::</menuseparator><menudescription><pre 
xml:space="preserve">
 </pre></menudescription></menuentry></menu>
 
 </top>
@@ -1398,10 +2128,28 @@ 
$result_converted{'xml'}->{'nodedescription_descriptions'} = '<node name="Top" s
 <nodedescription spaces=" ">other comes here</nodedescription>
 
 </chapter>
-<node name="last" spaces=" "><nodename>last</nodename><nodeprev 
automatic="on">other</nodeprev><nodeup automatic="on">Top</nodeup></node>
+<node name="last" spaces=" "><nodename>last</nodename><nodenext 
automatic="on">a somewhat long node without description nor following 
space</nodenext><nodeprev automatic="on">other</nodeprev><nodeup 
automatic="on">Top</nodeup></node>
 <chapter spaces=" "><sectiontitle>Last</sectiontitle>
 
 <nodedescription spaces=" ">we are last</nodedescription>
+
+</chapter>
+<node name="a-somewhat-long-node-without-description-nor-following-space" 
spaces=" "><nodename>a somewhat long node without description nor following 
space</nodename><nodenext automatic="on">a very long node without description 
with little space left for</nodenext><nodeprev 
automatic="on">last</nodeprev><nodeup automatic="on">Top</nodeup></node>
+<chapter spaces=" "><sectiontitle>Somewhat long</sectiontitle>
+
+<nodedescription spaces=" ">not as long as the node</nodedescription>
+
+</chapter>
+<node name="a-very-long-node-without-description-with-little-space-left-for" 
spaces=" "><nodename>a very long node without description with little space 
left for</nodename><nodenext automatic="on">very very long node extending past 
the max columns and without description</nodenext><nodeprev automatic="on">a 
somewhat long node without description nor following space</nodeprev><nodeup 
automatic="on">Top</nodeup></node>
+<chapter spaces=" "><sectiontitle>Very long</sectiontitle>
+
+<nodedescription spaces=" ">starting the desciption with a somewhat long 
word</nodedescription>
+
+</chapter>
+<node 
name="very-very-long-node-extending-past-the-max-columns-and-without-description"
 spaces=" "><nodename>very very long node extending past the max columns and 
without description</nodename><nodeprev automatic="on">a very long node without 
description with little space left for</nodeprev><nodeup 
automatic="on">Top</nodeup></node>
+<chapter spaces=" "><sectiontitle>Past max columns</sectiontitle>
+
+<nodedescription spaces=" ">Not long</nodedescription>
 </chapter>
 ';
 



reply via email to

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