Skip to content

Commit

Permalink
[skip ci] Apply black changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree authored and github-actions[bot] committed Aug 16, 2023
1 parent 8921aee commit 79494e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions ford/md_admonition.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ class FordAdmonitionProcessor(AdmonitionProcessor):

CLASSNAME = "alert"
CLASSNAME_TITLE = "alert-title h4"
RE = re.compile(
r"""(?:^|\n)@note ?(?P<klass>[\w\-]+) *(?:\n|$)"""
)
RE = re.compile(r"""(?:^|\n)@note ?(?P<klass>[\w\-]+) *(?:\n|$)""")

def get_class_and_title(self, match):
"""Get the CSS class and title for this admonition
Expand Down
1 change: 1 addition & 0 deletions test/test_md_admonition.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def test_paragraph_end_line():
assert soup.find(class_="h4").text == "Note"
assert soup.div.find(not_title).text == "note text\nsome following text"


def test_explicit_end():
converted = convert(
"""
Expand Down

0 comments on commit 79494e5

Please sign in to comment.