parameters: ( self, content )
return_statement: return self.markups
docstring: Process a block content and return a list of DocMarkup objects
             corresponding to it.
docstring_summary: Process a block content and return a list of DocMarkup objects
             corresponding to it.
docstring_tokens: Process a block content and return a list of DocMarkup objects corresponding to it .
function: def  process_content( self, content ):
          """Process a block content and return a list of DocMarkup objects
             corresponding to it."""
          markup       = None
          markup_lines = []
          first        = 1
  
          margin  = -1
          in_code = 0
  
          for line in content:
              if in_code:
                  m = re_code_end.match( line )
                  if m and len( m.group( 1 ) ) <= margin:
                      in_code = 0
                      margin  = -1
              else:
                  m = re_code_start.match( line )
                  if m:
                      in_code = 1
                      margin  = len( m.group( 1 ) )
  
              found = None
  
              if not in_code:
                  for t in re_markup_tags:
                      m = t.match( line )
                      if m:
                          found  = string.lower( m.group( 1 ) )
                          prefix = len( m.group( 0 ) )
                          # remove markup from line
                          line   = " " * prefix + line[prefix:]
                          break
  
              # is it the start of a new markup section ?
              if found:
                  first = 0
                  self.add_markup()  # add current markup content
                  self.markup = found
                  if len( string.strip( line ) ) > 0:
                      self.markup_lines.append( line )
              elif first == 0:
                  self.markup_lines.append( line )
  
          self.add_markup()
  
          return self.markups
function_tokens: def process_content ( self , content ) : markup = None markup_lines = [ ] first = 1 margin = - 1 in_code = 0 for line in content : if in_code : m = re_code_end . match ( line ) if m and len ( m . group ( 1 ) ) <= margin : in_code = 0 margin = - 1 else : m = re_code_start . match ( line ) if m : in_code = 1 margin = len ( m . group ( 1 ) ) found = None if not in_code : for t in re_markup_tags : m = t . match ( line ) if m : found = string . lower ( m . group ( 1 ) ) prefix = len ( m . group ( 0 ) ) # remove markup from line line = " " * prefix + line [ prefix : ] break # is it the start of a new markup section ? if found : first = 0 self . add_markup ( ) # add current markup content self . markup = found if len ( string . strip ( line ) ) > 0 : self . markup_lines . append ( line ) elif first == 0 : self . markup_lines . append ( line ) self . add_markup ( ) return self . markups