diff options
Diffstat (limited to 'docs/docbook/scripts')
-rw-r--r-- | docs/docbook/scripts/strip-links.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/docbook/scripts/strip-links.pl b/docs/docbook/scripts/strip-links.pl index d89da23abe..66bc101e08 100644 --- a/docs/docbook/scripts/strip-links.pl +++ b/docs/docbook/scripts/strip-links.pl @@ -1,13 +1,15 @@ #!/usr/bin/perl -## small script to stirp the <URL:...> tags from +## small script to strip the <URL:...> tags from ## manpages generated from docbook2man. we'll leave ## the <URL:ftp://...> and <URL:mailto:...> links for now while (<STDIN>) { chomp ($_); - $_ =~ s/\s*<URL:.*>\s*//g; + $_ =~ s/\s*<URL:.*html.*>\s+/ /g; + $_ =~ s/\s*<URL:.*html.*>\S//g; + $_ =~ s/\s*<URL:.*html.*>$//g; print "$_\n"; } |