mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02:00
texi2pod: Make it output a single encoding string
Intermixing =encoding utf-8 in the file can confuse some pod2man implementations.
This commit is contained in:
parent
4912b634b5
commit
94f084324e
@ -327,13 +327,14 @@ $inf = pop @instack;
|
|||||||
|
|
||||||
die "No filename or title\n" unless defined $fn && defined $tl;
|
die "No filename or title\n" unless defined $fn && defined $tl;
|
||||||
|
|
||||||
|
# always use utf8
|
||||||
|
print "=encoding utf8\n\n";
|
||||||
|
|
||||||
$sects{NAME} = "$fn \- $tl\n";
|
$sects{NAME} = "$fn \- $tl\n";
|
||||||
$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};
|
$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};
|
||||||
|
|
||||||
unshift @sects_sequence, "NAME";
|
unshift @sects_sequence, "NAME";
|
||||||
for $sect (@sects_sequence) {
|
for $sect (@sects_sequence) {
|
||||||
# always use utf8
|
|
||||||
print "=encoding utf8\n";
|
|
||||||
if(exists $sects{$sect}) {
|
if(exists $sects{$sect}) {
|
||||||
$head = $sect;
|
$head = $sect;
|
||||||
$head =~ s/SEEALSO/SEE ALSO/;
|
$head =~ s/SEEALSO/SEE ALSO/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user