关闭

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

347人阅读 评论(0) 收藏 举报
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.

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:615899次
    • 积分:16893
    • 等级:
    • 排名:第583名
    • 原创:1131篇
    • 转载:1篇
    • 译文:0篇
    • 评论:7条
    文章存档
    最新评论