docbook-apps

  • 1.  Re: [docbook-apps] line breaks in

    Posted 06-30-2009 20:50
    Hi Sam,
    I noticed the extra space, and it is caused by a trailing space in the
    section title text, not the stylesheet.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    ----- Original Message -----
    From: "Sam Steingold" <sds@gnu.org>
    To: "Bob Stayton" <bobs@sagehill.net>
    Cc: <docbook-apps@lists.oasis-open.org>
    Sent: Tuesday, June 30, 2009 12:14 PM
    Subject: Re: [docbook-apps] line breaks in </lineannotation>


    Hi Bob,

    On Sun, Jun 28, 2009 at 2:35 PM, Bob Stayton<bobs@sagehill.net> wrote:
    >
    > <xsl:template match="title/text()" mode="no.anchor.mode">
    > <xsl:value-of select="translate(., ' ', ' ')"/>
    > </xsl:template>

    Thanks a lot! Indeed, this is a huge improvement, see:
    http://clisp.podval.org/impnotes/mt.html#mt-unsafe
    however, programlisting/lineannot is a fixed width environment,
    i.e., each extra space is seen on the screen, observe
    the spaces between "other" and "mutable" in:
    “Hash Tables, Sequences, and other mutable objects”

    Cannot expect perfection :-)

    --
    Sam Steingold <http://sds.podval.org>





  • 2.  Re: [docbook-apps] line breaks in

    Posted 06-30-2009 22:24
    Hi Bob,

    On Tue, Jun 30, 2009 at 4:50 PM, Bob Stayton<bobs@sagehill.net> wrote:
    > I noticed the extra space, and it is caused by a trailing space in the
    > section title text, not the stylesheet.

    actually, it is caused by the indentation in the original text.
    you are right - it does come from the source, not inserted by the stylesheet.
    however, I think it would be nice if the stylesheet removed the extra spaces,
    like with `sed 's/ */ /g'`

    --
    Sam Steingold <http://sds.podval.org>