Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 346803e

Browse files
committed
- fix generated Texinfo markup for \deprecated
- add support for additional markup: \leq, \textbar, \textit - add a comment about the non-support for the Euro character (ported from release24-maint branch release 1.10.4.2)
1 parent 1592c4c commit 346803e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Doc/tools/py2texi.el

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Both BEGIN and END are evaled. Moreover, you can reference arguments through
238238
("dataline" 1 (progn (setq findex t) "@item \\1\n@findex \\1\n"))
239239
("date" 1 "\\1")
240240
("declaremodule" 2 (progn (setq cindex t) "@label{\\2}@cindex{\\2}"))
241-
("deprecated" 2 "@emph{This is deprecated in Python \\1. \\2}")
241+
("deprecated" 2 "@emph{This is deprecated in Python \\1. \\2}\n\n")
242242
("dfn" 1 "@dfn{\\1}")
243243
("documentclass" 1 py2texi-magic)
244244
("e" 0 "@backslash{}")
@@ -279,6 +279,7 @@ Both BEGIN and END are evaled. Moreover, you can reference arguments through
279279
("large" 0 "")
280280
("ldots" 0 "@dots{}")
281281
("leftline" 1 "\\1")
282+
("leq" 0 "<=")
282283
("lineii" 2 "@item \\1 @tab \\2")
283284
("lineiii" 3 "@item \\1 @tab \\2 @tab \\3")
284285
("lineiv" 4 "@item \\1 @tab \\2 @tab \\3 @tab \\4")
@@ -380,7 +381,15 @@ Both BEGIN and END are evaled. Moreover, you can reference arguments through
380381
("textasciitilde" 0 "~")
381382
("textasciicircum" 0 "^")
382383
("textbackslash" 0 "@backslash{}")
384+
("textbar" 0 "|")
385+
; Some common versions of Texinfo don't support @euro yet:
386+
; ("texteuro" 0 "@euro{}")
387+
; Unfortunately, this alternate spelling doesn't actually apply to
388+
; the usage found in Python Tutorial, which actually requires a
389+
; Euro symbol to make sense, so this is commented out as well.
390+
; ("texteuro" 0 "Euro ")
383391
("textgreater" 0 ">")
392+
("textit" 1 "@i{\\1}")
384393
("textless" 0 "<")
385394
("textrm" 1 "\\1")
386395
("texttt" 1 "@code{\\1}")

0 commit comments

Comments
 (0)