Space in code makes it unadmittable?

Not sure if General is the right forum, but I’ll give it a shot!

In step 54 of the “Learn typography by building a Nutrition Label” the code:

<p><span><span class="example">Example</span>Example</span> <span class="example">Example</span></p>
works just fine to submit for solution, but the code

<p><span><span class="example">Example</span>Example</span><span class="example">Example</span></p>
does not.

The only difference is the space added in the nested first line of the <p>, between the first 2 <span> elements and the last.

The only difference between passable and not is that space. The only tip I get when trying to submit the secdond code is that “Your code should have exactly 3 span elements”.

Is that how <span> elements work or is it some error in the tutorial?

Have removed the actual code from the example code I’m posting for spoiler reasons. If I’m in the wrong about any formatting or code question formalia please correct me, this is my first post here :slight_smile:

sometimes the tests are overly strict
when creating the tests is impossible to prefict all possible ways that the code can be written. sometimes the strictness is intended, most often it is not.
feel free to open issues on github to report these issues, without an issue it is unlikely to see changes

I don’t want to nitpick in any way but just since I’m learning and all. Thanks for your reply, will post on GitHub and see. Now I know atleast how the <span> should work!

Hope you have a nice evening!