← Prev in month ← Prev in thread

line breaks in </lineannotation>

From
Sam Steingold <>
Date
2009-06-26T15:22:23+00:00
ID
Thread
line breaks in </lineannotation>
Hi,
if you look at
http://clisp.podval.org/impnotes/mt.html#mt-unsafe
you will see a spurious line break:

(INCF (GETHASH x global-ht 0))	; see Section 32.5.2.5, “Hash Tables,
Sequences, and other
  mutable objects”

there should not be a line break between "other" and "mutable".

the sources (http://clisp.podval.org/impnotes-src.zip) impext.xml:

-----------------------------------
<section id="mt-mutable"><title>Hash Tables, Sequences, and other
  mutable objects</title>
...
<programlisting language="lisp">
(&incf; (&gethash; x global-ht 0))<lineannotation>see <xref
linkend="mt-mutable"/></lineannotation>
....
-----------------------------------

template:

-----------------------------------
<xsl:template match="programlisting[@language = 'lisp']/lineannotation">
 <strong>&#9;;&#160;</strong> <!-- TAB + ; + &nbsp; -->
 <xsl:apply-imports/>
</xsl:template>
-----------------------------------

my question is: should I use normalize-space myself
(the following is probably wrong, I hope you will correct that for me):

-----------------------------------
<xsl:template match="programlisting[@language = 'lisp']/lineannotation">
 <strong>&#9;;&#160;</strong> <!-- TAB + ; + &nbsp; -->
 <xsl:value-of select="normalize-space(.)"><xsl:apply-imports/></xsl:value-of>
</xsl:template>
-----------------------------------

or is this a bug which could be fixed at the source?

thanks!

-- 
Sam Steingold <http://sds.podval.org>
← Prev in month ← Prev in thread