You appear to be a bot. Output may be restricted
Description
Handle a line which appears to be part of a tableDo we need to look ahead to the next line to find out if we really are processing a table?
Usage
oikai_format_markdown_table_line( $table, $line );
Parameters
- $table
- ( integer ) required – where we are in the table processing
- $line
- ( string ) required – the line with "| " prepended, if required
Returns
voidSource
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 29 of 29
function oikai_format_markdown_table_line( $table, $line ) { //static $th = null; switch ( $table ) { case 0: oik_require( "bobbforms.inc" ); stag( "table" ); stag( "thead" ); $line = ltrim( $line, "|" ); $cols = str_getcsv( $line, "|" ); bw_trace2( $cols, "cols", true, BW_TRACE_VERBOSE ); bw_tablerow( $cols, "tr", "th" ); etag( "thead" ); break; case 1: // Do nothing yet // We might generate some special CSS for alignment break; default: $line = ltrim( $line, "|" ); $cols = str_getcsv( $line, "|" ); bw_trace2( $cols, "cols", true, BW_TRACE_VERBOSE ); bw_tablerow( $cols, "tr", "td" ); } $table++; return( $table ); }View on GitHub