Skip to content

Commit

Permalink
Fixed bug that caused else blocks to render if blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fulton committed Sep 8, 1997
1 parent 61ba07d commit 639f75a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions DT_If.py
Expand Up @@ -110,8 +110,8 @@
# (540) 371-6909
#
############################################################################
__rcs_id__='$Id: DT_If.py,v 1.1 1997/08/27 18:55:42 jim Exp $'
__version__='$Revision: 1.1 $'[11:-2]
__rcs_id__='$Id: DT_If.py,v 1.2 1997/09/08 15:35:40 jim Exp $'
__version__='$Revision: 1.2 $'[11:-2]

from DT_Util import *

Expand All @@ -127,7 +127,7 @@ def __init__(self, blocks):
self.__name__ = name
self.sections=[(name, section)]
if blocks[-1][0]=='else':
tname, args, section = blocks[0]
tname, args, section = blocks[-1]
blocks=blocks[:-1]
args=parse_params(args, name='')
if args:
Expand Down Expand Up @@ -175,6 +175,9 @@ def render(self,md):
##########################################################################
#
# $Log: DT_If.py,v $
# Revision 1.2 1997/09/08 15:35:40 jim
# Fixed bug that caused else blocks to render if blocks.
#
# Revision 1.1 1997/08/27 18:55:42 jim
# initial
#

0 comments on commit 639f75a

Please sign in to comment.