def generate_latex_error(error_msg):
    error_msg = error_msg.replace("\n", "\\MessageBreak ")
    s = """\\PackageError{vistrails}{ An error occurred when executing vistrails. \\MessageBreak
%s
}{}""" % error_msg
    return s

###############################################################################
Return the content at line. None if out of boundary.
dataset/ETHPy150Open VisTrails/VisTrails/extensions/latex/includevistrail.py/generate_latex_error--crossover with--dataset/ETHPy150Open demon386/SmartMarkdown/utilities.py/text_at_line