Bug fix for the determine_format() function. Damn newline characters!
Authored by: bugman 2008-06-24
Parent: [r6484]
Child: [r6486]