mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 08:51:14 -03:00
Restyle codebase
And again clang-format does something I don't like: - if (found != end && std::strncmp(found->name, name, len) == 0 && found->name[len] == 0) return found; + if (found != end && std::strncmp(found->name, name, len) == 0 && found->name[len] == 0) + return found; I *know* this is a bit of a long line. I would still quite like having no brace-less multi-line if *ever*. Either put the body on the same line, or add braces. Blergh
This commit is contained in:
@@ -31,16 +31,16 @@ def issue_role(name, rawtext, text, lineno, inliner, options=None, content=None)
|
||||
if issue_num <= 0:
|
||||
raise ValueError
|
||||
except ValueError:
|
||||
msg = inliner.reporter.error(
|
||||
'Invalid issue number: "%s"' % text, line=lineno)
|
||||
msg = inliner.reporter.error('Invalid issue number: "%s"' % text, line=lineno)
|
||||
prb = inliner.problematic(rawtext, rawtext, msg)
|
||||
return [prb], [msg]
|
||||
template=issue_url + "/{n}"
|
||||
template = issue_url + "/{n}"
|
||||
ref = template.format(n=issue_num)
|
||||
issue_text = "#{issue_no}".format(issue_no=issue_num)
|
||||
link = nodes.reference(text=issue_text, refuri=ref, **options)
|
||||
return [link], []
|
||||
|
||||
|
||||
# -- Load our extensions -------------------------------------------------
|
||||
def setup(app):
|
||||
# Our own pygments lexer
|
||||
|
||||
Reference in New Issue
Block a user