Skip to content

setting string attribute of a tag crashes after calling tag.parsed_contents #102

@Jontpan

Description

@Jontpan

Example below:

import wikitextparser as wtp

wikicode = wtp.parse("<ref>a [reference]</ref>")
tag = wikicode.get_tags()[0]

tag.parsed_contents
tag.string = "<ref>a modified [reference]</ref>"

Commenting out the call tag.parsed_contents produces expected behaviour. Then content of the tag doesn't seem to matter.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions