Skip to content

Commit

Permalink
Fix sphinx-doc#9305 LaTeX: backslash in sphinxupquote error with Japa…
Browse files Browse the repository at this point in the history
…nese
  • Loading branch information
jfbu authored and marxin committed Jun 17, 2021
1 parent 287d27d commit c6bd2f6
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 @@ -101,6 +101,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 c6bd2f6

Please sign in to comment.