Skip to content

Commit

Permalink
Use lowercase config values
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Sep 15, 2022
1 parent 9e07f0f commit a6f24cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mne/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def repr_html(f):
If a _repr_html_ method is decorated with this decorator, the repr in a
notebook will show HTML or plain text depending on the config value
MNE_REPR_HTML (by default "True", which will render HTML).
MNE_REPR_HTML (by default "true", which will render HTML).
Parameters
----------
Expand All @@ -428,7 +428,7 @@ def repr_html(f):
from ..utils import get_config

def wrapper(*args, **kwargs):
if get_config("MNE_REPR_HTML", "True") == "False":
if get_config("MNE_REPR_HTML", "true").lower() == "false":
import html
r = "<pre>" + html.escape(repr(args[0])) + "</pre>"
return r.replace("\n", "<br/>")
Expand Down

0 comments on commit a6f24cb

Please sign in to comment.