Fix man inline macro

This should fix the double slash in the link.
This commit is contained in:
Gabriel Arazas 2023-03-12 10:25:13 +08:00
parent 728075a37d
commit fd31f6cab4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -15,11 +15,11 @@ class ManInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor
if doc.basebackend? 'html'
case attrs['service']
when 'debian'
domain = 'https://manpages.debian.org/'
domain = 'https://manpages.debian.org'
when 'arch'
domain = 'https://man.archlinux.org/man'
when 'opensuse'
domain = 'https://manpages.opensuse.org/'
domain = 'https://manpages.opensuse.org'
else
raise "no available manpage service #{attrs['service']}"
end