mirror of
https://github.com/vale981/releases
synced 2025-03-05 09:41:42 -05:00
Update terminology in issue_nodelist to be generic
This commit is contained in:
parent
ade63ba0fa
commit
3ed7ee99c8
1 changed files with 4 additions and 4 deletions
|
@ -21,14 +21,14 @@ def _log(txt, config):
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
|
|
||||||
|
|
||||||
def issue_nodelist(name, link=None):
|
def issue_nodelist(name, identifier=None):
|
||||||
which = '[<span style="color: #%s;">%s</span>]' % (
|
which = '[<span style="color: #%s;">%s</span>]' % (
|
||||||
ISSUE_TYPES[name], name.capitalize()
|
ISSUE_TYPES[name], name.capitalize()
|
||||||
)
|
)
|
||||||
signifier = [nodes.raw(text=which, format='html')]
|
signifier = [nodes.raw(text=which, format='html')]
|
||||||
hyperlink = [nodes.inline(text=" "), link] if link else []
|
id_nodelist = [nodes.inline(text=" "), identifier] if identifier else []
|
||||||
trail = [] if link else [nodes.inline(text=" ")]
|
trail = [] if identifier else [nodes.inline(text=" ")]
|
||||||
return signifier + hyperlink + [nodes.inline(text=":")] + trail
|
return signifier + id_nodelist + [nodes.inline(text=":")] + trail
|
||||||
|
|
||||||
|
|
||||||
release_line_re = re.compile(r'^(\d+\.\d+)\+$') # e.g. '1.2+'
|
release_line_re = re.compile(r'^(\d+\.\d+)\+$') # e.g. '1.2+'
|
||||||
|
|
Loading…
Add table
Reference in a new issue