hgbook

diff en/ch11-template.xml @ 634:d1a6ed326f87

Add package and upload script
author Dongsheng Song <dongsheng.song@gmail.com>
date Fri Mar 13 16:01:21 2009 +0800 (2009-03-13)
parents 13513d2a128d
children d0160b0b1a9e
line diff
     1.1 --- a/en/ch11-template.xml	Mon Mar 09 23:37:29 2009 -0700
     1.2 +++ b/en/ch11-template.xml	Fri Mar 13 16:01:21 2009 +0800
     1.3 @@ -1,6 +1,6 @@
     1.4  <!-- vim: set filetype=docbkxml shiftwidth=2 autoindent expandtab tw=77 : -->
     1.5  
     1.6 -<chapter id="chap:template">
     1.7 +<chapter id="chap.template">
     1.8    <?dbhtml filename="customizing-the-output-of-mercurial.html"?>
     1.9    <title>Customising the output of Mercurial</title>
    1.10  
    1.11 @@ -10,7 +10,7 @@
    1.12      command, or to customise the entire appearance of the built-in web
    1.13      interface.</para>
    1.14  
    1.15 -  <sect1 id="sec:style">
    1.16 +  <sect1 id="sec.style">
    1.17      <title>Using precanned output styles</title>
    1.18  
    1.19      <para>Packaged with Mercurial are some output styles that you can
    1.20 @@ -106,7 +106,7 @@
    1.21        <emphasis>escape sequence</emphasis>, telling Mercurial to print
    1.22        a newline at the end of each template item.  If you omit this
    1.23        newline, Mercurial will run each piece of output together.  See
    1.24 -      section <xref linkend="sec:template:escape"/> for more details
    1.25 +      section <xref linkend="sec.template.escape"/> for more details
    1.26        of escape sequences.</para>
    1.27  
    1.28      <para>A template that prints a fixed string of text all the time
    1.29 @@ -124,10 +124,10 @@
    1.30        and text with the expansion of whatever is inside.  To print a
    1.31        literal curly brace, you must escape it, as described in section
    1.32        <xref
    1.33 -	linkend="sec:template:escape"/>.</para>
    1.34 -
    1.35 -  </sect1>
    1.36 -  <sect1 id="sec:template:keyword">
    1.37 +	linkend="sec.template.escape"/>.</para>
    1.38 +
    1.39 +  </sect1>
    1.40 +  <sect1 id="sec.template.keyword">
    1.41      <title>Common template keywords</title>
    1.42  
    1.43      <para>You can start writing simple templates immediately using the
    1.44 @@ -149,7 +149,7 @@
    1.45  	  committed.  This is <emphasis>not</emphasis> human-readable;
    1.46  	  you must pass it through a filter that will render it
    1.47  	  appropriately.  See section <xref
    1.48 -	    linkend="sec:template:filter"/> for more information
    1.49 +	    linkend="sec.template.filter"/> for more information
    1.50  	  on filters. The date is expressed as a pair of numbers.  The
    1.51  	  first number is a Unix UTC timestamp (seconds since January
    1.52  	  1, 1970); the second is the offset of the committer's
    1.53 @@ -197,12 +197,12 @@
    1.54        human-readable output, so we must treat it specially.  This
    1.55        involves using a <emphasis>filter</emphasis>, about which more
    1.56        in section <xref
    1.57 -	linkend="sec:template:filter"/>.</para>
    1.58 +	linkend="sec.template.filter"/>.</para>
    1.59  
    1.60      &interaction.template.simple.datekeyword;
    1.61  
    1.62    </sect1>
    1.63 -  <sect1 id="sec:template:escape">
    1.64 +  <sect1 id="sec.template.escape">
    1.65      <title>Escape sequences</title>
    1.66  
    1.67      <para>Mercurial's templating engine recognises the most commonly
    1.68 @@ -244,7 +244,7 @@
    1.69        it.</para>
    1.70  
    1.71    </sect1>
    1.72 -  <sect1 id="sec:template:filter">
    1.73 +  <sect1 id="sec.template.filter">
    1.74      <title>Filtering keywords to change their results</title>
    1.75  
    1.76      <para>Some of the results of template expansion are not