Skip to content

Commit

Permalink
Added list2html function
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bright committed Jul 16, 2016
1 parent 48905dd commit 95cf02f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions metakernel_bash/metakernelrc.user
Expand Up @@ -810,3 +810,10 @@ EOF
python $PYSCRIPT $* |& tee $TMPDIR/${FUNCNAME[0]}.html
}

list2html() {
{ echo "+------+";
sed -e 's/^/\| /' -e 's/$/ \|/'
echo "+------+"; } | html_table
}


0 comments on commit 95cf02f

Please sign in to comment.