Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Move HTML markup for "None" to macro. #237

Merged
merged 2 commits into from
Jun 4, 2015

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Jun 3, 2015

Putting HTML in a string literal in the currency filter was breaking
tests. It's also not ideal, since it requires using the safe filter,
and unsafe content could potentially leak through. This patch restores
the behavior of the currency filter and moves the markup for the "None"
element to a macro. This also applies the new null macro to other uses
of the currency filter.

Putting HTML in a string literal in the `currency` filter was breaking
tests. It's also not ideal, since it requires using the `safe` filter,
and unsafe content could potentially leak through. This patch restores
the behavior of the `currency` filter and moves the markup for the "None"
element to a macro.
@jmcarp jmcarp mentioned this pull request Jun 3, 2015
@noahmanger
Copy link
Contributor

Ah good lookin' out. Sorry, I should've just asked the best way to do that.

Did you not check in the null macro though? I don't see it.

@jmcarp
Copy link
Contributor Author

jmcarp commented Jun 4, 2015

Derp, forgot to check in the new file. Fixed.

noahmanger pushed a commit that referenced this pull request Jun 4, 2015
Move HTML markup for "None" to macro.
@noahmanger noahmanger merged commit 547e7d1 into fecgov:develop Jun 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants