Skip to content

Commit 2dfdd63

Browse files
authored
Merge pull request #1 from accidentalrebel/master
Fix error parsing latex_symbols.js from Julia.
2 parents 59234a1 + e35ac14 commit 2dfdd63

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Task # 1
1+
# Task # 1 - https://github.com/ipython/ipython/issues/12861
22

3-
https://github.com/ipython/ipython/issues/12861
3+
accidentalrebel: Made a pull request. https://github.com/code-relay-io/ipython/pull/1
4+
5+
# Task # 2 - Double check if newly generated `latex_symbols.py` is complete and are working in IPython.
46

57
Remember your job is to make *incremental* progress, break the task into smaller tasks, or finish something in 15 minutes, then pass it along to the next contributor.
68
No responsibility, only fun.

tools/gen_latex_symbols.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
for l in lines[symbols_line:]:
3636
if not '=>' in l: continue # if it's not a def, skip
3737
if '#' in l: l = l[:l.index('#')] # get rid of eol comments
38-
x, y = l.strip().split('=>')
38+
x, y = l.strip().split('=>')
39+
if not '"' in x or not '"' in y: continue # if there's no ", skip
3940
if '*' in x: # if a prefix is present substitute it with its value
4041
p, x = x.split('*')
4142
x = prefix_dict[p][:-1] + x[1:]

0 commit comments

Comments
 (0)