1. Shlomi Fish
  2. XML-CompareML


shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 92e145b

Now handling <b> correctly.

  • Participants
  • Parent commits 2ddf2ed
  • Branches default

Comments (0)

Files changed (3)

File examples/scm-comparison.output.html

View file
 <p class="expl">
                 Does the system support moving a file or directory to
                 a different location while still retaining the history
-                of the file? Note: also see the next section
+                of the file? <b>Note:</b> also see the next section
                 about intelligent merging of renamed paths.
 <table class="compare">

File extradata/compare-ml.xslt

View file
 <xsl:template match="expl">
  <p class="expl">
- <xsl:value-of select="."/>
+     <xsl:apply-templates />
     <a href="{@href}"><xsl:apply-templates/></a>
+<xsl:template match="b">
+    <b><xsl:apply-templates/></b>

File t/01generate.t

View file
+    # Turn to if (1) if you want to generate a good version.
+    if (0)
+    {
+        open my $o, ">", "examples/scm-comparison.output.html";
+        binmode $o, ":utf8";
+        print {$o} $buffer;
+        close($o);
+    }
     open my $good_html_fh, "<", "examples/scm-comparison.output.html";
     binmode $good_html_fh, ":utf8";
     my $good_content;