# Source: Description: docbook2man should translate the NAME section according to the REFENTRY's lang attribute Currently, docbook2man translates the NAME section according to the lang attribute provided to the REFNAMEDIV tag. When a lang attribute is specified in the REFENTRY tag and no lang attribute is specified with the REFNAMEDIV, the lang attribute of the REFENTRY should be used. Author: Nicolas François Forwarded: not-needed Bug-Debian: http://bugs.debian.org/394511 Index: docbook-utils-0.6.14/helpers/docbook2man-spec.pl =================================================================== --- docbook-utils-0.6.14.orig/helpers/docbook2man-spec.pl 2012-05-09 18:55:53.276783163 +0200 +++ docbook-utils-0.6.14/helpers/docbook2man-spec.pl 2012-05-09 18:58:04.792778418 +0200 @@ -359,11 +359,14 @@ # NAME section man_sgml('', sub { my %words = qw( fr NOM es NOMBRE de NAME ); - if (defined($_[0]->attribute('LANG')->value)) { - my $id = $_[0]->attribute('LANG')->value; - my $ad = $words{$id}; - output("\n.SH $ad\n");} - else {output("\n.SH NAME\n");} + # Use the REFNAMEDIV's lang attribute, and default to the + # REFENTRY's lang attribute. + my $lang = $_[0]->attribute('LANG')->value; + $lang = $manpage_lang unless defined $lang; + if (defined($lang) and defined $words{lc($lang)}) { + my $ad = $words{lc($lang)}; + output("\n.SH $ad\n");} + else { output("\n.SH NAME\n");} }); sgml('', \&save_cdata); ht' method='get' action='/guix/log/gnu/packages/clojure.scm'>
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-07-12 13:25:45 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-07-12 23:23:24 -0400
commitfcd552d7762fc10b0d0a113e8081a2e27be66778 (patch)
treed5140ee9624e6e4a1f15dbd056d4d8be0b46bcbc /gnu/packages/clojure.scm
parent58dba446e398ea147a5fc9e90c5b678d11c3f815 (diff)
downloadguix-fcd552d7762fc10b0d0a113e8081a2e27be66778.tar.gz
guix-fcd552d7762fc10b0d0a113e8081a2e27be66778.zip
gnu: libadwaita: Propagate gtk.
* gnu/packages/gnome.scm (libadwaita)[inputs]: Move gtk to... [propagated-inputs]: ... here.
Diffstat (limited to 'gnu/packages/clojure.scm')
0 files changed, 0 insertions, 0 deletions