Bind server templates corupt host files

Hello, so after letting this problem go on longer then I wanted I think I have found out what my problem is. I use a custom BIND server template to setup extra records for any domain setup through VirtMin. Problem is, however, that these records don’t fit in nicely to the host file.

The error I’m getting is this:

[code:1]named[8661]: dns_master_load: /var/cache/bind/ unexpected end of line
named[8661]: dns_master_load: /var/cache/bind/ unexpected end of input
named[8661]: zone loading master file /var/cache/bind/ unexpected end of input[/code:1]

The template text, even though I put it in correctly with tabs, turns in to this when I hit save on the templates and what gets added to the host files.

bara.${DOM} IN
3 bara.${DOM}[/code:1]

So my question: How can I make Virtualmin save the right formatting for the host file so the DNS zone actually loads?

So, I’m assuming by the lack of replys that this is a bug.

I’ve just found this too. I’ve filed a bug report.