Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
b8445846
Commit
b8445846
authored
Aug 13, 2015
by
Alexandre Duret-Lutz
Browse files
* tools/man2html.pl: Fix interlinking of man pages.
parent
490b0b15
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/man2html.pl
View file @
b8445846
...
...
@@ -57,7 +57,7 @@ while (my $file = readdir(DIR))
$html
=~
s|<p style="margin-left:11%; margin-top: 1em"><b>([^<>]*?:)\s*</b></p>|<h3 style="margin-left:11%">$1</h3>|smg
;
$html
=~
s@<body>@<body class="man"><div id="org-div-home-and-up"><a accesskey="h" href="../tools.html"> UP </a>| <a accesskey="H" href="../index.html"> HOME </a></div>@
;
$html
=~
s{<b>([\w-]+)</b>\((\d+)\)}{
(-f "$1.$2") ? "<a href=\"$1.$2.html\"><b>$1</b></a>($2)" : $&;
(-f "$
dir/$
1.$2") ? "<a href=\"$1.$2.html\"><b>$1</b></a>($2)" : $&;
}xge
;
open
(
FILE
,
"
>
$ofile
")
or
die
$!
;
print
FILE
$html
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment