Dreamwidth does not want tabs or trailing whitespace, as per the Dev Programming Guidelines. These two tips can help you check out your patch before submission for these flaws.
In vim, you can show whitespace with the command
You can also use cat -et.
In .bml files, if you get an error message with a line number, the line numbering starts from the beginning of the code block, not from the beginning of the file.