native/Vendor/FreeType/src/tools/docmaker/content.py
def  add_markup( self ):
        """add a new markup section"""
        if self.markup and self.markup_lines:

            # get rid of last line of markup if it's empty
            marks = self.markup_lines
            if len( marks ) > 0 and not string.strip( marks[-1] ):
                self.markup_lines = marks[:-1]

            m = DocMarkup( self.markup, self.markup_lines )

            self.markups.append( m )

            self.markup       = None
            self.markup_lines = []
def  add_markup( self ):
        if self.markup and self.markup_lines:

            # get rid of last line of markup if it's empty
            marks = self.markup_lines
            if len( marks ) > 0 and not string.strip( marks[-1] ):
                self.markup_lines = marks[:-1]

            m = DocMarkup( self.markup, self.markup_lines )

            self.markups.append( m )

            self.markup       = None
            self.markup_lines = []
def add_markup ( self ) : if self . markup and self . markup_lines : # get rid of last line of markup if it's empty marks = self . markup_lines if len ( marks ) > 0 and not string . strip ( marks [ - 1 ] ) : self . markup_lines = marks [ : - 1 ] m = DocMarkup ( self . markup , self . markup_lines ) self . markups . append ( m ) self . markup = None self . markup_lines = [ ]
add a new markup section
add a new markup section