All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: spurious .sp in manpages
@ 2006-12-16  9:52 Tom Prince
  2006-12-16 12:08 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Prince @ 2006-12-16  9:52 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

On Wed, Dec 13, 2006 at 12:58:28AM -0800, Junio C Hamano wrote:
> This is just a random hack to work around problems people seem
> to be seeing in manpage backend of xmlto (it appears we are
> getting ".sp" at the end of line without line break).
> 
> Could people test this out?
> 

This fixes the files available in the man branch of git.git.

  Tom

P.S. I have this fragment in config.mak to install the manpages without
asciidoc. 

man:
	git-archive --format=tar --prefix=${prefix}/man/ man | tar xP
install: man


^ permalink raw reply	[flat|nested] 4+ messages in thread
* spurious .sp in manpages
@ 2006-12-13  8:58 Junio C Hamano
  2006-12-13 10:17 ` Gerrit Pape
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2006-12-13  8:58 UTC (permalink / raw)
  To: git

This is just a random hack to work around problems people seem
to be seeing in manpage backend of xmlto (it appears we are
getting ".sp" at the end of line without line break).

Could people test this out?

---

diff --git a/Documentation/callouts.xsl b/Documentation/callouts.xsl
index ad03755..6a361a2 100644
--- a/Documentation/callouts.xsl
+++ b/Documentation/callouts.xsl
@@ -13,4 +13,18 @@
 	<xsl:apply-templates/>
 	<xsl:text>.br&#10;</xsl:text>
 </xsl:template>
+
+<!-- sorry, this is not about callouts, but attempts to work around
+ spurious .sp at the tail of the line docbook stylesheets seem to add -->
+<xsl:template match="simpara">
+  <xsl:variable name="content">
+    <xsl:apply-templates/>
+  </xsl:variable>
+  <xsl:value-of select="normalize-space($content)"/>
+  <xsl:if test="not(ancestor::authorblurb) and
+                not(ancestor::personblurb)">
+    <xsl:text>&#10;&#10;</xsl:text>
+  </xsl:if>
+</xsl:template>
+
 </xsl:stylesheet>

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-16 12:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-16  9:52 spurious .sp in manpages Tom Prince
2006-12-16 12:08 ` Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2006-12-13  8:58 Junio C Hamano
2006-12-13 10:17 ` Gerrit Pape

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.