Skip to content

Fix error parsing latex_symbols.js from Julia. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Task # 1
# Task # 1 - https://github.com/ipython/ipython/issues/12861

https://github.com/ipython/ipython/issues/12861
accidentalrebel: Made a pull request. https://github.com/code-relay-io/ipython/pull/1

# Task # 2 - Double check if newly generated `latex_symbols.py` is complete and are working in IPython.

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.
No responsibility, only fun.
Expand Down
3 changes: 2 additions & 1 deletion tools/gen_latex_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
for l in lines[symbols_line:]:
if not '=>' in l: continue # if it's not a def, skip
if '#' in l: l = l[:l.index('#')] # get rid of eol comments
x, y = l.strip().split('=>')
x, y = l.strip().split('=>')
if not '"' in x or not '"' in y: continue # if there's no ", skip
if '*' in x: # if a prefix is present substitute it with its value
p, x = x.split('*')
x = prefix_dict[p][:-1] + x[1:]
Expand Down