diff --git a/mathics/builtin/files_io/importexport.py b/mathics/builtin/files_io/importexport.py index e91f20179..9b0033230 100644 --- a/mathics/builtin/files_io/importexport.py +++ b/mathics/builtin/files_io/importexport.py @@ -1060,16 +1060,16 @@ class RegisterImport(Builtin): >> FilePrint["ExampleData/ExampleData.txt"] | Example File Format | Created by Angus - | 0.629452 0.586355 - | 0.711009 0.687453 - | 0.246540 0.433973 - | 0.926871 0.887255 - | 0.825141 0.940900 - | 0.847035 0.127464 - | 0.054348 0.296494 - | 0.838545 0.247025 - | 0.838697 0.436220 - | 0.309496 0.833591 + | 0.629452 0.586355 + | 0.711009 0.687453 + | 0.246540 0.433973 + | 0.926871 0.887255 + | 0.825141 0.940900 + | 0.847035 0.127464 + | 0.054348 0.296494 + | 0.838545 0.247025 + | 0.838697 0.436220 + | 0.309496 0.833591 >> Import["ExampleData/ExampleData.txt", {"ExampleFormat1", "Elements"}] = {Data, Header} diff --git a/mathics/doc/doc_entries.py b/mathics/doc/doc_entries.py index 201d4ae19..dc7c2e905 100644 --- a/mathics/doc/doc_entries.py +++ b/mathics/doc/doc_entries.py @@ -93,7 +93,7 @@ r"""(?mx)^ # re.MULTILINE (multi-line match) # and re.VERBOSE (readable regular expressions ((?:.|\n)*?) - ^\s+([>#SX])>[ ](.*) # test-code indicator + ^\s*([>#SX])>[ ](.*) # test-code indicator ((?:\n\s*(?:[:|=.][ ]|\.).*)*) # test-code results""" ) TESTCASE_OUT_RE = re.compile(r"^\s*([:|=])(.*)$") @@ -216,10 +216,7 @@ def parse_docstring_to_DocumentationEntry_items( logging.warning("``key_part`` is deprecated. Its value is discarded.") # Remove commented lines. - doc = filter_comments(doc).strip(r"\s") - - # Remove leading