[MKDoc-commit] Fix for test 303, hyperlinking fails across tag boundaries

bruno at mkdoc.demon.co.uk bruno at mkdoc.demon.co.uk
Thu Dec 9 13:51:47 GMT 2004


Log Message:
-----------
Fix for test 303, hyperlinking fails across tag boundaries

Modified Files:
--------------
    MKDoc-XML/lib/MKDoc/XML:
        Tagger.pm

-------------- next part --------------
Index: Tagger.pm
===================================================================
RCS file: /var/spool/cvs/MKDoc-XML/lib/MKDoc/XML/Tagger.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -Llib/MKDoc/XML/Tagger.pm -Llib/MKDoc/XML/Tagger.pm -u -r1.9 -r1.10
--- lib/MKDoc/XML/Tagger.pm
+++ lib/MKDoc/XML/Tagger.pm
@@ -108,12 +108,15 @@
         $text = _text_replace ($text, $expr, $tag, \%attr);
     }
     
+    while ($text =~ /\&\(\d+\)/)
+    {
     for (my $i = 0; $i < @{$tags}; $i++)
     {
         my $c   = $i + 1;
         my $tag = $tags->[$i];
         $text =~ s/\&\($c\)/$tag/g;
     }
+    }
     
     return $text;
 }


More information about the MKDoc-commit mailing list