Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / doc / asciidoctor-macros / ws_utils.rb
blob9a4551a0fa9c5188deb44c5b5c7c7771e7405274
1 # SPDX-License-Identifier: MIT
2 module WsUtils
3   def create_doc_links(parent, target, text)
4     if (parent.document.basebackend? 'docbook') || (parent.document.basebackend? 'html')
5       parent.document.register :links, target
6       create_anchor(parent, text, type: :link, target: target).render.to_s
7     elsif parent.document.backend == 'manpage'
8       "\\fB#{text}"
9     else
10       text
11     end
12   end
13 end