mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
docbook->texi fix
* module/texinfo/docbook.scm (*sdocbook->stexi-rules*): Only convert ulink to uref if there is a URL attribute.
This commit is contained in:
parent
520850ad27
commit
0eba699d12
1 changed files with 6 additions and 2 deletions
|
@ -97,8 +97,12 @@ a number of generic rules for transforming docbook into texinfo."
|
|||
(subsection . ,identity)
|
||||
(subsubsection . ,identity)
|
||||
(ulink . ,(lambda (tag attrs . body)
|
||||
`(uref (% ,(assq 'url (cdr attrs))
|
||||
(title ,@body)))))
|
||||
(cond
|
||||
((assq 'url (cdr attrs))
|
||||
=> (lambda (url)
|
||||
`(uref (% ,url (title ,@body)))))
|
||||
(else
|
||||
(car body)))))
|
||||
(*text* . ,detag-one)
|
||||
(*default* . ,(lambda (tag . body)
|
||||
(let ((subst (assq tag tag-replacements)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue