Skip to content

Commit

Permalink
Merge pull request #9335 from jfbu/9305_platex_backslash_upquote
Browse files Browse the repository at this point in the history
Fix #9305 LaTeX: backslash in sphinxupquote error with Japanese
  • Loading branch information
jfbu committed Jun 13, 2021
2 parents 7673cd6 + ef9b55c commit 8939a75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -19,6 +19,8 @@ Bugs fixed
* #9330: changeset domain: :rst:dir:`versionchanged` with contents being a list
will cause error during pdf build
* #9313: LaTeX: complex table with merged cells broken since 4.0
* #9305: LaTeX: backslash may cause Improper discretionary list pdf build error
with Japanese engines

Testing
--------
Expand Down
3 changes: 2 additions & 1 deletion sphinx/texinputs/sphinxlatexliterals.sty
Expand Up @@ -765,7 +765,8 @@
% break at . , ; ? ! /
\sphinxbreaksviaactive
% break also at \
\let\sphinx@textbackslash\textbackslash
\setbox8=\hbox{\textbackslash}%
\def\sphinx@textbackslash{\copy8}%
\let\textbackslash\sphinxtextbackslash
% by default, no continuation symbol on next line but may be added
\let\sphinxafterbreak\sphinxafterbreakofinlineliteral
Expand Down

0 comments on commit 8939a75

Please sign in to comment.