Skip to content

Commit

Permalink
Update breathe/apidoc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner authored Jan 19, 2025
1 parent b50a8d8 commit 948611e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions breathe/apidoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ def write_file(name, text, args):

def format_heading(level, text):
"""Create a heading of <level> [1, 2 or 3 supported]."""
underlining = [
"=",
"-",
"~",
][
underlining = ["=", "-", "~"][
level - 1
] * len(text)
return "%s\n%s\n\n" % (text, underlining)
Expand Down

0 comments on commit 948611e

Please sign in to comment.