diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 904e971d39f..8f957640b5d 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -257,7 +257,7 @@ \setindexsubitem{(in module #1)}% \index{#1@{\py@idxcode{#1}} (#2module)|textbf}% \ifpy@UseModuleIndex% - \write\modindexfile{\protect\indexentry{#1@{\tt #1}}{\thepage}}% + \write\modindexfile{\protect\indexentry{#1@{\texttt {#1}}}{\thepage}}% \fi% }