Skip to content

Conversation

@Alex-Jordan
Copy link
Contributor

As reported in on pretext-support, if something is out of sorts with a webwork2 server, the static PTX rendering of an exercise might have <image source=""/> with an empty source attribute. Normally when something is actually there, we capture what is there so we can download the webwork2 server's cached image file, and then we replace what is in @source with an appropriate generated image file path. But if we've captured the empty string, bad things happen when we try to replace all instances of the empty string...

So this change ensures the match only happens on nonempty source attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant