last updated 2020-02-02
a aaaa aaaaaaa aa aaaaaaaa aaaaaaaaa a aaaa aaa aaaaaaaaa a aaaa, aaaaaaa aaaa aaaaaa aaaaaaaaa a aaaa aaa aaaa aa aaaa aaaaaa, aaa a aaaaa aa aaaaa aa aaaaaaaaaaa aa aaa aaa aaaa.
aaa aaaaaaaaaa aa aaaaa aa aaa aaaaaaaaaaaa aaaaaaa aa aaaaaaaa aa aaaaa aaaaa aaaaa aa aaaaa aaaaa:
aa aaaaaaa: aaaaaaaaaóa aa aa aaaaaaaaa aa aa aaaaaaaaía a aóaa aaaaaaaa a aaaaaaa aa aa aaaaa, aaa aaaaaaaaíaaaaaa, aa aaaaaa aaa aaaaa aa aa aaaaaaa aaa, aa aóaaa aa aaaaaaaa, a aóaa aa aaaaaaa.
-- aaaaaaa
aaaaaaaaa a aaaaaaaaaa
aaaaaaa: a.
aaa aaaa a aaaa aaaaaaaaa aa aa.aa. aaaaa: aaaaaaaaa aa aaaa.
aaa aaaa aaaaa a aaaaa aaaa aaaa, aaaaaaa aaa aaaaa aaaaaaaa aaa (aaaaaaaa aaaa):
aa éa aaaaaaaaaaa aa aaé aaaaaaaa aaaaaaa, aaa aaaaaaaaíaaaaaa, a aóaa aa aaaaaaa, aaaaa aaaaa.
-- aaaaaaaaa
aaaa aaa aaaa aa aaaaa aaaaaaaaa!
aaa aaaa aaaa aaaaaa aaa aa aaaaa, aaa aaaaaaaaaaaa, aaaaaa aa aaa aaa aaaaaaa, aaaaaaaa aaa aaaaaaaaaaaa.
a aaaa aaaaaa aaa aaaa aaaa a aaaaaaa a aaaaa aa aaaaa aaa aaa aaaaaaaaaaaa, aaaa aa aaaa aaaaaaa a aaa aa aaa aaaaaaaaa.
aaaaaaaaaaa aaaaaaaaaa
aaaaaaa: a.
aaa aaaa a aaaa aaaaaaaa aa aaaaa.
aaaa aaaa aaaa a aaaa aaa aaaaaaaaaa aaa aaaaaaa’a aaaaa, aaaaaa aa aaa aaa aaaaaaa, aaaaaaaa, aaa aaaaaaa aa aaaaaaaaa aaaaaaaaaaaa aaaaaaa.
aaaa aaa’a aaaa aa aaa aaaa aa aaaaaaaaa aaaaaaaa, aaaa aa aaaaa, aaa aaaaaaaaa aaa aaaa aa aaaa aaa aaaaaaaa aa a aaaaaaa.
Bug Report
Zola sometimes fails to build or serve content with
minify_html = true
when source files contain CJK characters, depending on the number of characters around them.Environment
Zola version: 0.13.0
Expected Behavior
Zola should compile and minify all files without issue.
Current Behavior
Site fails to build sometimes, and in other situations fail to be served, if there are CJK characters. It's interesting that
zola serve
andzola build
behave differently (I haven't run into a situation where both failed to work on the same content), but I guess this probably has to do with the injected reload script/differentbase_url
.(the third line doesn't show up when running
zola serve
)Steps to reproduce
As it's not a consistent issue, I've prepared a small example site: minify-cjk-bug.zip
Zola successfully builds this example site if I ensure three bytes (ASCII characters, newlines), or multiples of three bytes (including 0 bytes), are before the CJK character.
I haven't been able to create a minimal site to reproduce the failure during
zola serve
, butmy website
currently fails to build on serve.