Message ID | 20210521224452.530852-11-felipe.contreras@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | doc: asciidoctor: direct man page creation and fixes | expand |
diff --git a/Documentation/asciidoctor-extensions.rb b/Documentation/asciidoctor-extensions.rb index 8856f2febd..e48a381b8f 100644 --- a/Documentation/asciidoctor-extensions.rb +++ b/Documentation/asciidoctor-extensions.rb @@ -3,7 +3,6 @@ require 'asciidoctor/converter/manpage' module Asciidoctor class Converter::ManPageConverter - alias orig_convert_inline_anchor convert_inline_anchor def convert_inline_anchor(node) case node.type when :xref @@ -25,8 +24,10 @@ module Asciidoctor end "\e\\fB%s\e\\fR[%d]" % [node.text, footnote.index] + when :ref, :bibref + '' else - orig_convert_inline_anchor(node) + nil end end alias inline_anchor convert_inline_anchor # For old versions of asciidoctor
There's basically nothing we need from the original orig_convert_inline_anchor(), so let's remove calls to it. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- Documentation/asciidoctor-extensions.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)