Skip to content

Commit 44b7ef2

Browse files
committed
Fix raw string escaping
1 parent 30cb7e4 commit 44b7ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pyomo/contrib/latex_printer/latex_printer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ def generate_set_name(st, lcm):
10811081
generate_set_name(s, lcm) for s in st.subsets(False)
10821082
)
10831083
else:
1084-
return str(st).replace('_', r'\_').replace('{', '\{').replace('}', '\}')
1084+
return str(st).replace('_', r'\_').replace('{', r'\{').replace('}', r'\}')
10851085

10861086
# Handling the iterator indices
10871087
defaultSetLatexNames = ComponentMap()

0 commit comments

Comments
 (0)