inject/injectionspec.py
def scan():
    """Scan .contents into global tables."""
    for i, ln in enumerate(g[CONTENT]):
        if not ln.strip():  # ignore a blank line
            continue
        if ln[0] == "#":  # ignore a comment line
            continue
        line.read(ln)
        if line.g[INDENT] == 0:
            finish_format()
            start_format()
        elif line.g[INDENT] == 2:
            if w0() == INJSPEC_TITLEKEY:
                set_format_title(rest())
            elif try_builtin_field():
                pass  # work was done in the function
            elif try_specified_field():
                pass
            else:
                raise ValueError("can't read line", i)
Scan .contents into global tables.
Scan .contents into global tables.
Scan . contents into global tables .
def scan():
    for i, ln in enumerate(g[CONTENT]):
        if not ln.strip():  
            continue
        if ln[0] == "#":  
            continue
        line.read(ln)
        if line.g[INDENT] == 0:
            finish_format()
            start_format()
        elif line.g[INDENT] == 2:
            if w0() == INJSPEC_TITLEKEY:
                set_format_title(rest())
            elif try_builtin_field():
                pass  
            elif try_specified_field():
                pass
            else:
                raise ValueError("can't read line", i)
def scan ( ) : for i , ln in enumerate ( g [ CONTENT ] ) : if not ln . strip ( ) : continue if ln [ 0 ] == "#" : continue line . read ( ln ) if line . g [ INDENT ] == 0 : finish_format ( ) start_format ( ) elif line . g [ INDENT ] == 2 : if w0 ( ) == INJSPEC_TITLEKEY : set_format_title ( rest ( ) ) elif try_builtin_field ( ) : pass elif try_specified_field ( ) : pass else : raise ValueError ( "can't read line" , i )
Scan .contents into global tables.
Scan . contents into global tables .
"""Scan .contents into global tables.""" # ignore a blank line # ignore a comment line # work was done in the function