private void initListBlock(final Block root){
  Line line=root.lines;
  line=line.next;
  while (line != null) {
    final LineType t=line.getLineType();
    if ((t == LineType.OLIST || t == LineType.ULIST) || (!line.isEmpty && (line.prevEmpty && line.leading == 0))) {
      root.split(line.previous).type=BlockType.LIST_ITEM;
    }
    line=line.next;
  }
  root.split(root.lineTail).type=BlockType.LIST_ITEM;
}

private void initListBlock ( final Block root ) { Line line = root . lines ; line = line . next ; while ( line != null ) { final LineType t = line . getLineType ( ) ; if ( ( t == LineType . OLIST || t == LineType . ULIST ) || ( ! line . isEmpty && ( line . prevEmpty && line . leading == 0 ) ) ) { root . split ( line . previous ) . type = BlockType . LIST_ITEM ; } line = line . next ; } root . split ( root . lineTail ) . type = BlockType . LIST_ITEM ; }
initializes a list block by separating it into list item blocks .
