#NEWLINE# def MoveToMargin( self , m ) : #NEWLINE# #INDENT# 'Adjust the index so m falls between the current knot and the next.' #NEWLINE# if ( self . CurKnot ( ) > self ) : #NEWLINE# #INDENT# while ( self . CurKnot ( ) > m ) : #NEWLINE# #INDENT# self . Retreat ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# while ( self . NextKnot ( ) <= m ) : #NEWLINE# #INDENT# self . Advance ( )