Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JWock82 committed Oct 29, 2022
1 parent e11514e commit a2bed8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ipycalc/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def process_line(calc_line, local_ns):
# Handle manually inserted line breaks placed in the line by the user
description = description.replace('\\\\', '} \\\\ \\textsf{')
equation = equation.replace('\\\\', '')
reference = reference.replace('\\\\', '} \\\\ \\textsf{')

# Turn off pretty printing momentarily while we prepare a Python expression for the value
ureg.default_format = '~'
Expand Down Expand Up @@ -321,7 +322,8 @@ def process_line(calc_line, local_ns):
# There will be a double equals sign if the equation is not being displayed
latex_text = latex_text.replace('==', '=')

print(latex_text)
# Uncomment the next line to view the raw latex output while debugging
# print(latex_text)

return latex_text

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="ipycalc",
version="0.0.34",
version="0.0.35",
author="D. Craig Brinck, PE, SE",
author_email="[email protected]",
description="Clean looking engineering calculations for IPython",
Expand Down

0 comments on commit a2bed8f

Please sign in to comment.