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
fe208e17
Commit
fe208e17
authored
Aug 24, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a aparent bug in opt when both start and end are specified and
end < start.
parent
46305295
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/DocumentTemplate/DT_InSV.py
lib/python/DocumentTemplate/DT_InSV.py
+3
-3
No files found.
lib/python/DocumentTemplate/DT_InSV.py
View file @
fe208e17
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Sequence variables support
$Id: DT_InSV.py,v 1.1
2 1999/08/18 20:48:2
7 jim Exp $'''
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
$Id: DT_InSV.py,v 1.1
3 1999/08/24 12:54:3
7 jim Exp $'''
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
from
string
import
lower
,
rfind
from
math
import
sqrt
...
...
@@ -413,7 +413,7 @@ def opt(start,end,size,orphan,sequence):
# if start > l: start=l
if
end
>
0
:
if
end
>
start
:
end
=
start
if
end
<
start
:
end
=
start
else
:
end
=
start
+
size
-
1
try
:
sequence
[
end
+
orphan
-
1
]
...
...
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