Skip to content

Commit 24fec16

Browse files
committed
XMLDoc now needs requires title parameter
So we must pass one in assignment "?".
1 parent 9092ccb commit 24fec16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mathics/builtin/assignment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,12 +1003,13 @@ def _get_usage_string(symbol, evaluation, htmlout=False):
10031003
from mathics.doc.common_doc import XMLDoc
10041004

10051005
docstr = bio.builtin.__class__.__doc__
1006+
title = bio.builtin.__class__.__name__
10061007
if docstr is None:
10071008
return None
10081009
if htmlout:
1009-
usagetext = XMLDoc(docstr).html()
1010+
usagetext = XMLDoc(docstr, title).html()
10101011
else:
1011-
usagetext = XMLDoc(docstr).text(0)
1012+
usagetext = XMLDoc(docstr, title).text(0)
10121013
usagetext = re.sub(r"\$([0-9a-zA-Z]*)\$", r"\1", usagetext)
10131014
return usagetext
10141015
return None

0 commit comments

Comments
 (0)