import re


def normalize_contents(file_contents):
    """Remove trailing zeroes after floating point and normalize trailin newline to unix standard."""
    normalized = re.sub(r'(\d*.\d*?)0+(\s)', r'\g<1>0\2', file_contents)  # remove trailing zeroes
    if not re.match(r'\n', file_contents[-1]):  # add trailing newline if necessary
        normalized += '\n'
    return normalized