import re


def generate_filename(documentation):
    """Generates the unique filename from the timestamp data."""
    timestamp = documentation["timestamp"]
    timestamp = re.sub(":", "-", timestamp)
    timestamp = re.sub(" ", "_", timestamp)
    documentation_name = documentation["documentation_name"]
    documentation_filename = documentation_name + "_" + timestamp + ".txt"
    return documentation_filename