Correctly use the \url{} macro for ulinks without any content.

So <ulink url="bla"></ulink> will be displayed properly.
This commit is contained in:
Murray Stokely 2001-10-13 01:07:24 +00:00
parent 06cbc5862b
commit 0b61dde25e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=10925

View file

@ -1,4 +1,4 @@
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.57 2001/09/11 08:56:52 murray Exp $ --> <!-- $FreeBSD$ -->
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY % output.html "IGNORE"> <!ENTITY % output.html "IGNORE">
@ -430,7 +430,11 @@
(element ulink (element ulink
(make sequence (make sequence
(if (node-list-empty? (children (current-node))) (if (node-list-empty? (children (current-node)))
(literal (fix-url (attribute-string (normalize "url")))) (make formatting-instruction data:
(string-append "\\url{"
(fix-url (attribute-string
(normalize "url")))
"}"))
(make sequence (make sequence
($charseq$) ($charseq$)
(if %footnote-ulinks% (if %footnote-ulinks%