Module spug.nml.block

Classes

Functions

getHeader(block)

def getHeader(block):

A utility function which finds the first header in the text and returns it as a string. This is useful for extracting the title from a document.

Returns None if no header was found.

parms:

block

[ TextBlock]