Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Convert from example result in IndexError: list index out of range #33
Hello there, I have a file (math.txt) with the following content (from examples).
The code below is trying to parse and convert the above but fail with IndexError: list index out ouf range
#! /usr/bin/python3 import latex2mathml.converter latex_input = open("math.txt","r").read().strip() mathml_output = latex2mathml.converter.convert(latex_input) print(mathml_output)
Is there something I'm doing the wrong way? I'm using version 2.5.2