Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f75f2591
Commit
f75f2591
authored
Feb 19, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support environments {fulllineitems} and {classdesc}, more of the new logical
markup. The info generation now works, yet again.
parent
fcef27c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
24 deletions
+14
-24
Doc/partparse.py
Doc/partparse.py
+7
-12
Doc/tools/partparse.py
Doc/tools/partparse.py
+7
-12
No files found.
Doc/partparse.py
View file @
f75f2591
...
...
@@ -1334,7 +1334,7 @@ def changeit(buf, pp):
chunk
(
GROUP
,
ch
.
where
,
[])]
length
,
i
=
length
+
2
,
i
+
2
elif
envname
in
(
'itemize'
,
'list'
):
elif
envname
in
(
'itemize'
,
'list'
,
'fulllineitems'
):
if
hist
.
itemizenesting
>
len
(
itemizesymbols
):
raise
error
,
'too deep itemize nesting'
if
envname
==
'list'
:
...
...
@@ -1419,12 +1419,11 @@ def changeit(buf, pp):
if
length
!=
len
(
pp
):
raise
'STILL, SOMETHING wrong'
,
`i`
elif
envname
in
(
'funcdesc'
,
'funcdescni'
):
elif
envname
in
(
'funcdesc'
,
'funcdescni'
,
'classdesc'
):
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
i
,
length
=
i
+
1
,
length
+
1
length
,
i
=
do_funcdesc
(
length
,
buf
,
pp
,
i
,
envname
==
"funcdesc
"
)
envname
[
-
2
:]
!=
"ni
"
)
elif
envname
==
'excdesc'
:
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
...
...
@@ -1435,7 +1434,7 @@ def changeit(buf, pp):
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
i
,
length
=
i
+
1
,
length
+
1
length
,
i
=
do_datadesc
(
length
,
buf
,
pp
,
i
,
envname
==
"datadesc
"
)
envname
[
-
2
:]
!=
"ni
"
)
elif
envname
==
'opcodedesc'
:
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
...
...
@@ -1472,7 +1471,7 @@ def changeit(buf, pp):
chunk
(
GROUP
,
ch
.
where
,
[
chunk
(
PLAIN
,
ch
.
where
,
'example'
)])]
i
,
length
=
i
+
2
,
length
+
2
elif
envname
in
(
'itemize'
,
'list'
):
elif
envname
in
(
'itemize'
,
'list'
,
'fulllineitems'
):
hist
.
itemizenesting
=
hist
.
itemizenesting
-
1
pp
[
i
:
i
]
=
[
chunk
(
CSLINE
,
ch
.
where
,
'end'
),
chunk
(
GROUP
,
ch
.
where
,
[
...
...
@@ -1497,7 +1496,7 @@ def changeit(buf, pp):
pp
.
insert
(
i
,
chunk
(
DENDLINE
,
ch
.
where
,
'
\
n
'
))
i
,
length
=
i
+
1
,
length
+
1
elif
envname
in
(
'funcdesc'
,
'excdesc'
,
'datadesc'
,
elif
envname
in
(
'funcdesc'
,
'excdesc'
,
'datadesc'
,
'classdesc'
,
'funcdescni'
,
'datadescni'
):
pp
[
i
:
i
]
=
[
chunk
(
CSLINE
,
ch
.
where
,
'end'
),
chunk
(
GROUP
,
ch
.
where
,
[
...
...
@@ -1597,10 +1596,6 @@ def changeit(buf, pp):
elif
s_buf_data
==
'program'
:
ch
.
data
=
"strong"
elif
s_buf_data
==
"fulllineitems"
:
del
pp
[
i
-
1
]
i
,
length
=
i
-
1
,
length
-
1
elif
s_buf_data
==
'item'
:
ch
.
chtype
=
chunk_type
[
CSLINE
]
length
,
newi
=
getoptarg
(
length
,
buf
,
pp
,
i
)
...
...
@@ -2093,7 +2088,7 @@ def changeit(buf, pp):
elif
s_buf_data
in
(
'url'
,
'module'
,
'function'
,
'cfunction'
,
'keyword'
,
'method'
,
'exception'
,
'constant'
,
'email'
,
'class'
):
'email'
,
'class'
,
'member'
,
'cdata'
,
'ctype'
):
ch
.
data
=
"code"
elif
s_buf_data
==
'label'
:
...
...
Doc/tools/partparse.py
View file @
f75f2591
...
...
@@ -1334,7 +1334,7 @@ def changeit(buf, pp):
chunk
(
GROUP
,
ch
.
where
,
[])]
length
,
i
=
length
+
2
,
i
+
2
elif
envname
in
(
'itemize'
,
'list'
):
elif
envname
in
(
'itemize'
,
'list'
,
'fulllineitems'
):
if
hist
.
itemizenesting
>
len
(
itemizesymbols
):
raise
error
,
'too deep itemize nesting'
if
envname
==
'list'
:
...
...
@@ -1419,12 +1419,11 @@ def changeit(buf, pp):
if
length
!=
len
(
pp
):
raise
'STILL, SOMETHING wrong'
,
`i`
elif
envname
in
(
'funcdesc'
,
'funcdescni'
):
elif
envname
in
(
'funcdesc'
,
'funcdescni'
,
'classdesc'
):
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
i
,
length
=
i
+
1
,
length
+
1
length
,
i
=
do_funcdesc
(
length
,
buf
,
pp
,
i
,
envname
==
"funcdesc
"
)
envname
[
-
2
:]
!=
"ni
"
)
elif
envname
==
'excdesc'
:
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
...
...
@@ -1435,7 +1434,7 @@ def changeit(buf, pp):
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
i
,
length
=
i
+
1
,
length
+
1
length
,
i
=
do_datadesc
(
length
,
buf
,
pp
,
i
,
envname
==
"datadesc
"
)
envname
[
-
2
:]
!=
"ni
"
)
elif
envname
==
'opcodedesc'
:
pp
.
insert
(
i
,
chunk
(
PLAIN
,
ch
.
where
,
''
))
...
...
@@ -1472,7 +1471,7 @@ def changeit(buf, pp):
chunk
(
GROUP
,
ch
.
where
,
[
chunk
(
PLAIN
,
ch
.
where
,
'example'
)])]
i
,
length
=
i
+
2
,
length
+
2
elif
envname
in
(
'itemize'
,
'list'
):
elif
envname
in
(
'itemize'
,
'list'
,
'fulllineitems'
):
hist
.
itemizenesting
=
hist
.
itemizenesting
-
1
pp
[
i
:
i
]
=
[
chunk
(
CSLINE
,
ch
.
where
,
'end'
),
chunk
(
GROUP
,
ch
.
where
,
[
...
...
@@ -1497,7 +1496,7 @@ def changeit(buf, pp):
pp
.
insert
(
i
,
chunk
(
DENDLINE
,
ch
.
where
,
'
\
n
'
))
i
,
length
=
i
+
1
,
length
+
1
elif
envname
in
(
'funcdesc'
,
'excdesc'
,
'datadesc'
,
elif
envname
in
(
'funcdesc'
,
'excdesc'
,
'datadesc'
,
'classdesc'
,
'funcdescni'
,
'datadescni'
):
pp
[
i
:
i
]
=
[
chunk
(
CSLINE
,
ch
.
where
,
'end'
),
chunk
(
GROUP
,
ch
.
where
,
[
...
...
@@ -1597,10 +1596,6 @@ def changeit(buf, pp):
elif
s_buf_data
==
'program'
:
ch
.
data
=
"strong"
elif
s_buf_data
==
"fulllineitems"
:
del
pp
[
i
-
1
]
i
,
length
=
i
-
1
,
length
-
1
elif
s_buf_data
==
'item'
:
ch
.
chtype
=
chunk_type
[
CSLINE
]
length
,
newi
=
getoptarg
(
length
,
buf
,
pp
,
i
)
...
...
@@ -2093,7 +2088,7 @@ def changeit(buf, pp):
elif
s_buf_data
in
(
'url'
,
'module'
,
'function'
,
'cfunction'
,
'keyword'
,
'method'
,
'exception'
,
'constant'
,
'email'
,
'class'
):
'email'
,
'class'
,
'member'
,
'cdata'
,
'ctype'
):
ch
.
data
=
"code"
elif
s_buf_data
==
'label'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment