moltemplate bug: Error: Problem with box boundary format ("xlo xhi") in "Data Boundary"

Greetings

A moltemplate user has discovered a problem which results in a very
confusing message...

   If you encounter this error:

Error: Problem with box boundary format ("xlo xhi") in "Data Boundary"

... it probably means that you were using a windows text editor (like
Notepad or Wordpad) to create the .LT file that moltemplate.sh was
reading when it died.

If you run into this error message, try doing this for all of your .LT files:

mv file.lt file.lt.backup
tr -d '\r' < file.lt.backup > file.lt

Alternately, you can do that using this BASH loop:

for f in *.lt; do
    mv -f "$f" "$f.backup"
    tr -d '\r' < "$f.backup" > "$f"
done

If you run into this problem with moltemplate, try this trick and see
if it helps.
Future versions of moltemplate will take care of this problem automatically.

Cheers
Andrew

Better to use the dos2unix command.