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

Skip to content

Commit f339632

Browse files
committed
Define a general entity "&version;" that can be used as the current major
version of the Python interpreter. This is \version in the LaTeX format of the documentation.
1 parent fdfd50f commit f339632

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

Doc/sgml/catalog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
-- SGML-Open-style catalog for the Python documentation system --
2+
13
CATALOG "iso/catalog"
24
CATALOG "oasis/catalog"
35

46
PUBLIC "+//IDN python.org//DTD Python Documentation 1.0//EN" "python.dtd"
7+
PUBLIC "+//IDN python.org//ENTITIES Python Version//EN" "version.ent"

Doc/sgml/python.dtd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
PUBLIC "-//OASIS//DTD Exchange Table Model 19960430//EN">
88
&oasis-tables.mod;
99

10+
<!-- define the &version; general entity -->
11+
<!ENTITY python-version.ent
12+
PUBLIC "+//IDN python.org//ENTITIES Python Version//EN">
13+
&python-version.ent;
14+
1015
<!ELEMENT input - - EMPTY>
1116
<!ATTLIST input
1217
%common.att;

Doc/sgml/version.ent

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<!-- Version number for the Python interpreter -->
2+
<!ENTITY version CDATA "1.5">

0 commit comments

Comments
 (0)