(string)
| 79 | |
| 80 | |
| 81 | def _fix_sqrt(string): |
| 82 | if "\\sqrt" not in string: |
| 83 | return string |
| 84 | splits = string.split("\\sqrt") |
| 85 | new_string = splits[0] |
| 86 | for split in splits[1:]: |
| 87 | if split[0] != "{": |
| 88 | a = split[0] |
| 89 | new_substr = "\\sqrt{" + a + "}" + split[1:] |
| 90 | else: |
| 91 | new_substr = "\\sqrt" + split |
| 92 | new_string += new_substr |
| 93 | return new_string |
| 94 | |
| 95 | |
| 96 | def _strip_string(string): |