edgurgel/solid

break and continue with whitespace control issue

Open

#86 opened on Sep 6, 2021

 (2 comments) (0 reactions) (0 assignees)Elixir (56 forks)github user discovery
bughacktoberfest

Repository metrics

Stars
 (257 stars)
PR merge metrics
 (Avg merge 17d 10h) (2 merged PRs in 30d)

Description

     Render result was different!
     Input:
     ########################

     this should print

     {%- break -%}

     this should not print

     ########################


     code:  liquid_output == solid_output
     left:  "########################\n\nthis should print\n"
     right: "########################\n\nthis should print"
     Render result was different!
     Input:
     ########################

     this should print

     {%- continue %}

     this should not print

     ########################


     code:  liquid_output == solid_output
     left:  "########################\n\nthis should print\n"
     right: "########################\n\nthis should print"

https://github.com/edgurgel/solid/blob/master/test/integration/whitespace_control_cases/break_tag_test.exs#L3-L15 & https://github.com/edgurgel/solid/blob/master/test/integration/whitespace_control_cases/continue_tag_test.exs#L3-L15

Contributor guide