Skip to content

Commit 4a073ee

Browse files
committed
Wrap regexp in backticks in StringItem class to prevent Sphinx from interpreting it as a reference
1 parent 4b4bf5a commit 4a073ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

guidata/dataset/dataitems.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ def get_auto_help(self, instance: DataSet) -> str:
508508
auto_help += ", " + _("not empty")
509509
regexp = self.get_prop_value("data", instance, "regexp")
510510
if regexp:
511-
auto_help += ", " + _("regexp:") + " " + regexp
511+
# Wrap regexp in backticks to prevent Sphinx from interpreting
512+
# it as a reference
513+
auto_help += ", " + _("regexp:") + f" ``{regexp}``"
512514
return auto_help
513515

514516
def check_value(self, value: str, raise_exception: bool = False) -> bool:

0 commit comments

Comments
 (0)