Skip to content

Commit

Permalink
Prevent multiple project specification
Browse files Browse the repository at this point in the history
Prevents multiple `:project:` tags from being added to a breathe directive.
Fixes the issue that PR svenevs#146 tries to prevent.
  • Loading branch information
florianhumblot authored and svenevs committed Feb 9, 2022
1 parent 329c443 commit a45855d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exhale/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,8 @@ def specificationsForKind(kind):
# the monkeypatch re-configures breathe_default_project each time which was
# foolishly relied on elsewhere and undoing that blunder requires undoing
# all of the shenanigans that is configs.py...
ret.insert(0, ":project: " + configs._the_app.config.breathe_default_project)
if not any(":project:" in spec for spec in ret):
ret.insert(0, ":project: " + configs._the_app.config.breathe_default_project)
return ret


Expand Down

0 comments on commit a45855d

Please sign in to comment.