The BOM of unicode file in Freemarker's directive "include" made me crazy

来源:互联网 发布:网络小贷牌照申请流程 编辑:程序博客网 时间:2024/04/28 10:22
Just now, I was adding a navigation to our "jstore for moliyo" web project using a derective "include" as this:
...
<body style="margin:0px;padding:0px;">
<#include "navigation.html">
...
</body>
...

the file "navigation.html" is a unicode file with a BOM:
<table><tr><td>some other words.</td></tr></table>

but a line break was displayed in Microsoft Internet Explorer, but not in Mozilla Firefox.

I'd tried hard to delete the line break, but failed.

I was crazying...

But when I saved the file "navigation.html" with no BOM, the line break was fucked off in IE.

I thought this is a bug of freemarker and I'd reportted it in the sf.net.

I'd downloaded its source from the CVS repository and attempted to find the bugged code, but nothing I found.

Well, I should go back for bed, I'm sneezing as I've caught a cold last weekeed.

原创粉丝点击