Changeset 2414:15ae6f7507d1 in livinglogic.python.xist

Show
Ignore:
Timestamp:
06/29/05 19:03:51 (15 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

find() is gone.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • _xist/ns/doc.py

    r2393 r2414  
    768768            label = "%d." % context.lists[-1][1] 
    769769        context.indentcount += 1 
    770         if self.content.find(xsc.FindType(block)): 
    771             content = self.content 
     770        if self[block]: # Do we have a block in our content? 
     771            content = self.content # yes => use the content as is 
    772772        else: 
    773             content = self.__ns__.par(self.content) 
     773            content = self.__ns__.par(self.content) # no => wrap it in a paragraph 
    774774        if type=="dlist": 
    775775            e = target.block(