Skip to content

Conversation

@AbcAeffchen
Copy link

Context

{strip} removed spaces between HTML attributes in some cases like e.g.,
<a href=\"{'genLink'}\"\n target=\"_blank\">. This is due to the Smarty tag in the middle splitting the text block up and so the regex does not recognize the HTML attribute.

Changes

This PR adds a regex to look for a " (the end of an attribute) followed by something that looks like another attribute [a-z-]+=". In this case the space in the middle is replaced by a single space instead of being completely removed. The PR also adds two tests for this case which resemble the circumstances under which I encountered this bug.

{strip} removed spaces between HTML attributes in some cases like e.g.,
 `<a href=\"{'genLink'}\"\n target=\"_blank\">`. This is due to the Smarty tag in the middle splitting the text block up and so the regex does not recognize the HTML attribute.
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