Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix escaping in erubi/capture_end, the setting was previously inverted (
Fixes #10) This wasn't caught previously because the tests are parameterized and it wasn't obvious what the settings was. The code was based on the default erubi code which uses xor, but a positive xor leads to unescaped output in the default code, but previously lead to escaped output in capture_end. While here, add a couple non-parameterized capture_end tests to make the expected behavior obvious, as well as a parameterized test for using a loop inside a method that gets injected into a <%|= and <%|== block.
- Loading branch information
1 parent
0fc0bcf
commit d944709
Showing
3 changed files
with
76 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters