texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Convert/DocBook.pm (_convert): start


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/DocBook.pm (_convert): start a section at the associated node.
Date: Wed, 16 Feb 2022 17:18:36 -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 bb9ee7a535 * tp/Texinfo/Convert/DocBook.pm (_convert): start a section 
at the associated node.
bb9ee7a535 is described below

commit bb9ee7a535e4256a940e852b4b4c1969637e90f1
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Feb 16 23:15:59 2022 +0100

    * tp/Texinfo/Convert/DocBook.pm (_convert): start a section at
    the associated node.
---
 ChangeLog                                          |   5 +
 tp/Texinfo/Convert/DocBook.pm                      | 101 +++--
 tp/t/docbook_tests.t                               |  12 +
 .../docbook_tests/between_node_and_section.pl      | 449 +++++++++++++++++++++
 4 files changed, 523 insertions(+), 44 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1de13ac5d4..4a0b2d3bef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-02-16  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/DocBook.pm (_convert): start a section at
+       the associated node.
+
 2022-02-16  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Avoid warn_unused_result warning from gcc
diff --git a/tp/Texinfo/Convert/DocBook.pm b/tp/Texinfo/Convert/DocBook.pm
index c613bb7794..f7e398c877 100644
--- a/tp/Texinfo/Convert/DocBook.pm
+++ b/tp/Texinfo/Convert/DocBook.pm
@@ -594,7 +594,6 @@ sub _convert($$;$)
           warn "BUG: multitable cell command not in a row "
             .Texinfo::Common::debug_print_element($element);
         }
-        
         $result .= "<entry>";
         push @close_format_elements, 'entry';
       }
@@ -635,55 +634,69 @@ sub _convert($$;$)
           return '';
         }
       } elsif ($type eq 'line') {
-        if ($element->{'cmdname'} eq 'node') {
-          if ($element->{'extra'} and 
!$element->{'extra'}->{'associated_section'}
-              and defined($element->{'extra'}->{'normalized'})) {
+        if ($element->{'cmdname'} eq 'node'
+            and (not $element->{'extra'}
+                 or not $element->{'extra'}->{'associated_section'})) {
+          if ($element->{'extra'} and 
defined($element->{'extra'}->{'normalized'})) {
             $result .= "<anchor 
id=\"$element->{'extra'}->{'normalized'}\"/>\n";
           }
         } elsif ($Texinfo::Common::root_commands{$element->{'cmdname'}}) {
-          my $attribute = '';
-          # FIXME it is not clear that a label should be set for
-          # @appendix* or @chapter/@*section as the formatter should be
-          # able to figure it out.  For @unnumbered or if ! NUMBER_SECTIONS
-          # having a label (empty) is important.
-          my $label = '';
-          if (defined($element->{'structure'}->{'section_number'})
-            and ($self->get_conf('NUMBER_SECTIONS')
-                 or !defined($self->get_conf('NUMBER_SECTIONS')))) {
-            # Looking at docbook2html output, Appendix is appended in the 
-            # section title, so only the letter is used.
-            $label = $element->{'structure'}->{'section_number'};
-          }
-          my $docbook_sectioning_element = 
$self->_docbook_section_element($element);
-          if (! $docbook_special_unnumbered{$docbook_sectioning_element}) {
-            $attribute = " label=\"$label\"";
+          # start the section at the associated or at the sectioning command
+          # if there is no associated node
+          my $section_element;
+          if ($element->{'cmdname'} eq 'node') {
+            $section_element = $element->{'extra'}->{'associated_section'};
+          } elsif (not $element->{'extra'}
+                   or not $element->{'extra'}->{'associated_node'}) {
+            $section_element = $element;
           }
-          if ($element->{'extra'} and 
$element->{'extra'}->{'associated_node'}) {
-            $attribute .= " 
id=\"$element->{'extra'}->{'associated_node'}->{'extra'}->{'normalized'}\"";
-          }
-          my $language = '';
-          if (defined($self->get_conf('documentlanguage'))) {
-            $language = $self->get_conf('documentlanguage');
-            if ($self->{'lang_stack'}->[-1] ne 
$self->get_conf('documentlanguage')) {
-              $attribute .= ' lang="'.$self->get_conf('documentlanguage').'"';
+          if ($section_element) {
+            my $attribute = '';
+            # FIXME it is not clear that a label should be set for
+            # @appendix* or @chapter/@*section as the formatter should be
+            # able to figure it out.  For @unnumbered or if ! NUMBER_SECTIONS
+            # having a label (empty) is important.
+            my $label = '';
+            if (defined($section_element->{'structure'}->{'section_number'})
+              and ($self->get_conf('NUMBER_SECTIONS')
+                   or !defined($self->get_conf('NUMBER_SECTIONS')))) {
+              # Looking at docbook2html output, Appendix is appended in the
+              # section title, so only the letter is used.
+              $label = $section_element->{'structure'}->{'section_number'};
+            }
+            my $docbook_sectioning_element
+               = $self->_docbook_section_element($section_element);
+            if (! $docbook_special_unnumbered{$docbook_sectioning_element}) {
+              $attribute = " label=\"$label\"";
+            }
+            if ($section_element->{'extra'} and 
$section_element->{'extra'}->{'associated_node'}) {
+              $attribute
+               .= " 
id=\"$section_element->{'extra'}->{'associated_node'}->{'extra'}->{'normalized'}\"";
+            }
+            my $language = '';
+            if (defined($self->get_conf('documentlanguage'))) {
+              $language = $self->get_conf('documentlanguage');
+              if ($self->{'lang_stack'}->[-1] ne 
$self->get_conf('documentlanguage')) {
+                $attribute .= ' 
lang="'.$self->get_conf('documentlanguage').'"';
+              }
+            }
+            push @{$self->{'lang_stack'}}, $language;
+            $result .= "<$docbook_sectioning_element${attribute}>\n";
+            if ($section_element->{'args'} and 
$section_element->{'args'}->[0]) {
+              my ($arg, $end_line) = 
$self->_convert_argument_and_end_line($section_element);
+              $result .= "<title>$arg</title>$end_line";
+              chomp ($result);
+              $result .= "\n";
+            }
+            if ($docbook_sectioning_element eq 'part'
+                and !Texinfo::Common::is_content_empty($section_element)) {
+              $result .= "<partintro>\n";
             }
-          }
-          push @{$self->{'lang_stack'}}, $language;
-          $result .= "<$docbook_sectioning_element${attribute}>\n";
-          if ($element->{'args'} and $element->{'args'}->[0]) {
-            my ($arg, $end_line) = 
$self->_convert_argument_and_end_line($element);
-            $result .= "<title>$arg</title>$end_line";
-            chomp ($result);
-            $result .= "\n";
-          }
-          if ($docbook_sectioning_element eq 'part'
-              and !Texinfo::Common::is_content_empty($element)) {
-            $result .= "<partintro>\n";
           }
         } elsif 
($Texinfo::Common::sectioning_heading_commands{$element->{'cmdname'}}) {
           if ($element->{'args'} and $element->{'args'}->[0]) {
             my ($arg, $end_line) = 
$self->_convert_argument_and_end_line($element);
-            $result .= 
+            $result .=
               "<bridgehead 
renderas=\"$docbook_sections{$element->{'cmdname'}}\">$arg</bridgehead>$end_line";
             chomp ($result);
             $result .= "\n";
@@ -753,9 +766,9 @@ sub _convert($$;$)
       } elsif ($regular_font_style_commands{$element->{'cmdname'}}) {
         $in_monospace_not_normal = 0;
       }
-      push @{$self->{'document_context'}->[-1]->{'monospace'}}, 
-        $in_monospace_not_normal
-          if (defined($in_monospace_not_normal));
+      push @{$self->{'document_context'}->[-1]->{'monospace'}},
+             $in_monospace_not_normal
+               if (defined($in_monospace_not_normal));
       my $arg = $self->_convert($element->{'args'}->[0]);
       $result .= $self->xml_protect_text($element->{'extra'}->{'begin'}).$arg
                 .$self->xml_protect_text($element->{'extra'}->{'end'});
diff --git a/tp/t/docbook_tests.t b/tp/t/docbook_tests.t
index a770cd37f0..71244bd19f 100644
--- a/tp/t/docbook_tests.t
+++ b/tp/t/docbook_tests.t
@@ -48,6 +48,18 @@ Glossary
 
 Ack!
 '],
+['between_node_and_section',
+'
+@node chap
+@chapter Chap
+
+@node sec1
+@section sec1
+
+@node sec2
+@anchor{Old name}
+@section sec2
+'],
 ['multiple_documentlanguage',
 '@documentlanguage ja
 
diff --git a/tp/t/results/docbook_tests/between_node_and_section.pl 
b/tp/t/results/docbook_tests/between_node_and_section.pl
new file mode 100644
index 0000000000..2afb6751f7
--- /dev/null
+++ b/tp/t/results/docbook_tests/between_node_and_section.pl
@@ -0,0 +1,449 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'between_node_and_section'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'chap'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'chap'
+          }
+        ],
+        'normalized' => 'chap',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Chap'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 3,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'sec1'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'sec1'
+          }
+        ],
+        'normalized' => 'sec1',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 5,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'sec1'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 6,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'sec2'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'Old name'
+                }
+              ],
+              'parent' => {},
+              'type' => 'brace_command_arg'
+            }
+          ],
+          'cmdname' => 'anchor',
+          'contents' => [],
+          'extra' => {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'Old-name'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 9,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_spaces_after_close_brace'
+        }
+      ],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'sec2'
+          }
+        ],
+        'normalized' => 'sec2',
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 8,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'sec2'
+            }
+          ],
+          'extra' => {
+            'spaces_after_argument' => '
+'
+          },
+          'parent' => {},
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'section',
+      'contents' => [],
+      'extra' => {
+        'spaces_before_argument' => ' '
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 10,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'between_node_and_section'}{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[0]{'parent'} = 
$result_trees{'between_node_and_section'};
+$result_trees{'between_node_and_section'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[1]{'args'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[1]{'args'}[0]{'parent'} 
= $result_trees{'between_node_and_section'}{'contents'}[1];
+$result_trees{'between_node_and_section'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'between_node_and_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'between_node_and_section'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[1]{'parent'} = 
$result_trees{'between_node_and_section'};
+$result_trees{'between_node_and_section'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[2]{'args'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[2]{'args'}[0]{'parent'} 
= $result_trees{'between_node_and_section'}{'contents'}[2];
+$result_trees{'between_node_and_section'}{'contents'}[2]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[2];
+$result_trees{'between_node_and_section'}{'contents'}[2]{'parent'} = 
$result_trees{'between_node_and_section'};
+$result_trees{'between_node_and_section'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[3]{'args'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[3]{'args'}[0]{'parent'} 
= $result_trees{'between_node_and_section'}{'contents'}[3];
+$result_trees{'between_node_and_section'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'between_node_and_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'between_node_and_section'}{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[3]{'parent'} = 
$result_trees{'between_node_and_section'};
+$result_trees{'between_node_and_section'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[4]{'args'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[4]{'args'}[0]{'parent'} 
= $result_trees{'between_node_and_section'}{'contents'}[4];
+$result_trees{'between_node_and_section'}{'contents'}[4]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[4];
+$result_trees{'between_node_and_section'}{'contents'}[4]{'parent'} = 
$result_trees{'between_node_and_section'};
+$result_trees{'between_node_and_section'}{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[5]{'args'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'args'}[0]{'parent'} 
= $result_trees{'between_node_and_section'}{'contents'}[5];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[0]{'args'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[0]{'args'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[0]{'extra'}{'node_content'}[0]
 = 
$result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[5];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'contents'}[1]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[5];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'extra'}{'node_content'}[0]
 = 
$result_trees{'between_node_and_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
 = 
$result_trees{'between_node_and_section'}{'contents'}[5]{'args'}[0]{'contents'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[5]{'parent'} = 
$result_trees{'between_node_and_section'};
+$result_trees{'between_node_and_section'}{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'between_node_and_section'}{'contents'}[6]{'args'}[0];
+$result_trees{'between_node_and_section'}{'contents'}[6]{'args'}[0]{'parent'} 
= $result_trees{'between_node_and_section'}{'contents'}[6];
+$result_trees{'between_node_and_section'}{'contents'}[6]{'parent'} = 
$result_trees{'between_node_and_section'};
+
+$result_texis{'between_node_and_section'} = '
+@node chap
+@chapter Chap
+
+@node sec1
+@section sec1
+
+@node sec2
+@anchor{Old name}
+@section sec2
+';
+
+
+$result_texts{'between_node_and_section'} = '
+1 Chap
+******
+
+1.1 sec1
+========
+
+1.2 sec2
+========
+';
+
+$result_sectioning{'between_node_and_section'} = {
+  'structure' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'chap'
+            }
+          }
+        },
+        'structure' => {
+          'section_childs' => [
+            {
+              'cmdname' => 'section',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'sec1'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 2,
+                'section_number' => '1.1',
+                'section_up' => {}
+              }
+            },
+            {
+              'cmdname' => 'section',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'sec2'
+                  },
+                  'structure' => {}
+                }
+              },
+              'structure' => {
+                'section_level' => 2,
+                'section_number' => '1.2',
+                'section_prev' => {},
+                'section_up' => {}
+              }
+            }
+          ],
+          'section_level' => 1,
+          'section_number' => 1,
+          'section_up' => {}
+        }
+      }
+    ],
+    'section_level' => 0
+  }
+};
+$result_sectioning{'between_node_and_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = 
$result_sectioning{'between_node_and_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'between_node_and_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_prev'}
 = 
$result_sectioning{'between_node_and_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[0];
+$result_sectioning{'between_node_and_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_childs'}[1]{'structure'}{'section_up'}
 = 
$result_sectioning{'between_node_and_section'}{'structure'}{'section_childs'}[0];
+$result_sectioning{'between_node_and_section'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
 = $result_sectioning{'between_node_and_section'};
+
+$result_nodes{'between_node_and_section'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'chapter',
+      'extra' => {},
+      'structure' => {
+        'section_number' => 1
+      }
+    },
+    'normalized' => 'chap'
+  }
+};
+
+$result_menus{'between_node_and_section'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'chap'
+  }
+};
+
+$result_errors{'between_node_and_section'} = [];
+
+
+$result_floats{'between_node_and_section'} = {};
+
+
+
+$result_converted{'docbook'}->{'between_node_and_section'} = '
+<chapter label="1" id="chap">
+<title>Chap</title>
+
+<sect1 label="1.1" id="sec1">
+<title>sec1</title>
+
+</sect1>
+<anchor id="Old-name"/><sect1 label="1.2" id="sec2">
+<title>sec2</title>
+</sect1>
+</chapter>
+';
+
+1;



reply via email to

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