Docs: Change the default wsbuglink text to "Issue".

Change the default text in the AsciiDoctor wsbuglink macrom from "Bug"
to "Issue".


(cherry picked from commit 9177f0e71a)
This commit is contained in:
Gerald Combs 2021-01-30 00:36:23 +00:00
parent 003a730a20
commit e372771997
1 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@ include ::Asciidoctor
#
# Usage
#
# wsbuglink:<number>[<bug text>]
# Default bug text is "Bug".
# wsbuglink:<number>[<issue text>]
# Default bug text is "Issue <number>".
#
class WSBugLinkInlineMacro < Extensions::InlineMacroProcessor
include WsUtils
@ -19,7 +19,7 @@ class WSBugLinkInlineMacro < Extensions::InlineMacroProcessor
name_positional_attributes 'bugtext'
def process(parent, issueid, attrs)
bugtext = attrs['bugtext'] || %(Bug #{issueid})
bugtext = attrs['bugtext'] || %(Issue #{issueid})
target = %(https://gitlab.com/wireshark/wireshark/-/issues/#{issueid})
create_doc_links(parent, target, bugtext)
end