Skip to content

Commit

Permalink
fixed bug in processing Pygments options (pygopt) when a key is used …
Browse files Browse the repository at this point in the history
…without a value (closes #181)
  • Loading branch information
gpoore committed Jun 6, 2021
1 parent 03ffad9 commit d0a4751
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pythontex/pythontex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
% \begin{changelog}{v0.18}{2020/??/??}
% \begin{itemize}
% \item \texttt{\string\inputpygments} now checks inputted files for modification, so that typeset code will correctly update when the source is changed (\#162).
% \item Fixed bug in processing Pygments options (\texttt{pygopt}) when a key is used without a value (\#181).
% \end{itemize}
% \end{changelog}
%
Expand Down
2 changes: 1 addition & 1 deletion pythontex/pythontex2.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def set_kv_pygments(k, v):
elif v in ('false', 'False'):
v = False
else:
k = option
k = options
v = True
opt_dict[k] = v
if family != ':GLOBAL':
Expand Down
2 changes: 1 addition & 1 deletion pythontex/pythontex3.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def set_kv_pygments(k, v):
elif v in ('false', 'False'):
v = False
else:
k = option
k = options
v = True
opt_dict[k] = v
if family != ':GLOBAL':
Expand Down

0 comments on commit d0a4751

Please sign in to comment.