git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* 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

* Re: spurious .sp in manpages
  2006-12-13  8:58 spurious .sp in manpages Junio C Hamano
@ 2006-12-13 10:17 ` Gerrit Pape
  0 siblings, 0 replies; 4+ messages in thread
From: Gerrit Pape @ 2006-12-13 10:17 UTC (permalink / raw)
  To: 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?

The workaround works fine for me on Debian/unstable.


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

* 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

* Re: spurious .sp in manpages
  2006-12-16  9:52 Tom Prince
@ 2006-12-16 12:08 ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2006-12-16 12:08 UTC (permalink / raw)
  To: Tom Prince; +Cc: git

Tom Prince <tom.prince@ualberta.net> writes:

> 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.

Thanks.

> 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
>
> .PHONY: man

It's tempting to take it, but that is chicken and egg for me
;-).

^ permalink raw reply	[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-13  8:58 spurious .sp in manpages Junio C Hamano
2006-12-13 10:17 ` Gerrit Pape
  -- strict thread matches above, loose matches on Subject: below --
2006-12-16  9:52 Tom Prince
2006-12-16 12:08 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).