Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
a5742e9c
Commit
a5742e9c
authored
May 11, 2000
by
john
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed another bug in ST
parent
12bb20e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lib/python/StructuredText/ST.py
lib/python/StructuredText/ST.py
+10
-3
No files found.
lib/python/StructuredText/ST.py
View file @
a5742e9c
...
...
@@ -223,7 +223,7 @@ def StructuredText(paragraphs):
run
.
append
([
paragraph
,[]])
levels
[
current_level
]
=
indent
elif
indent
<
current_indent
:
l
=
parent_level
(
levels
,
current_level
)
l
=
parent_level
(
levels
,
current_level
)
if
indent
>
0
and
indent
<
levels
[
0
]:
levels
[
0
]
=
indent
current_indent
=
indent
...
...
@@ -232,6 +232,12 @@ def StructuredText(paragraphs):
current_level
=
find_level
(
levels
,
indent
)
current_indent
=
indent
run
,
numbers
=
runner
(
struct
,
top
,
current_level
,
numbers
)
tmp
=
{}
K
=
levels
.
keys
()
for
key
in
K
:
if
key
<=
current_level
:
tmp
[
key
]
=
levels
[
key
]
levels
=
tmp
elif
levels
[
current_level
]
>
indent
and
levels
[
l
]
<
indent
:
levels
[
current_level
]
=
indent
current_indent
=
indent
...
...
@@ -239,6 +245,7 @@ def StructuredText(paragraphs):
current_level
=
l
else
:
tmp
=
{}
j
=
0
for
i
in
range
(
current_level
):
if
indent
>
levels
[
i
]:
tmp
[
i
]
=
levels
[
i
]
...
...
@@ -246,8 +253,8 @@ def StructuredText(paragraphs):
current_level
=
i
current_indent
=
indent
run
,
numbers
=
runner
(
struct
,
top
,
current_level
,
numbers
)
levels
=
tmp
run
.
append
([
paragraph
,[]])
levels
=
tmp
run
.
append
([
paragraph
,[]])
return
struct
class
doc_text
:
...
...
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