stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.34k stars 224 forks source link

Unknown template tag 'else' #276

Closed Sega-Zero closed 4 years ago

Sega-Zero commented 5 years ago

Reraising an issue from Sourcery repository: https://github.com/krzysztofzablocki/Sourcery/issues/735

With the very latest release of Sourcery, my templates (that were 100% working) are now completely broken. Can you please help me with understanding what is incorrect in my template?

andreasley commented 4 years ago

I've encountered the same error when a UTF8 template contained the character "Combining Diaeresis" at some point before the tag.

To be specific, my template contained ü encoded as 0x75 0xCC 0x88 (LATIN SMALL LETTER U + COMBINING DIAERESIS) instead of 0xC3 0xBC (LATIN SMALL LETTER U WITH DIAERESIS).