docmalloc / gplmt

GNU Affero General Public License v3.0
1 stars 0 forks source link

Comment between tasklists causes error #17

Closed C-h-r-i-s closed 8 years ago

C-h-r-i-s commented 8 years ago

Inserting a comment in between of two tasklists causes the following error ...

<tasklist name=...

Traceback (most recent call last): File "gplmt-light.py", line 54, in experiment = Experiment.from_file(args.experiment_file, settings=args) File "/usr/share/gplmt-new/gplmtlib.py", line 72, in from_file process_includes(document, parent_filename=filename) File "/usr/share/gplmt-new/gplmtlib.py", line 948, in process_includes augment_experiment(experiment_xml, extension_xml, prefix) File "/usr/share/gplmt-new/gplmtlib.py", line 914, in augment_experiment t.set('name', "{0}.{1}".format(prefix, t.get('name', '_unknown'))) File "lxml.etree.pyx", line 1548, in lxml.etree.ContentOnlyElement.set (src/lxml/lxml.etree.c:51108) File "lxml.etree.pyx", line 1544, in lxml.etree.ContentOnlyElement._raiseImmutable (src/lxml/lxml.etree.c:51004) TypeError: this element does not have children or attributes

FlorianDold commented 8 years ago

Should work now, comments are stripped.