shell_docs: Clear ansi at new-line
shell_docs: Clear ansi at new-line

We should clear the ansi sequence whenever there is a newline
so that tools that print things at newline are not broken.

This fix cheats a bit and only does the newline ansi check when
printing blocks of characters as we know that ansi codes can
only happen within inline elments and never inbetween blocks.

erlang/otp,potatosalad/otp,erlang/otp,erlang/otp,emacsmirror/erlang,getong/otp,rlipscombe/otp,bjorng/otp,mikpe/otp,dumbbell/otp,dgud/otp,dgud/otp,erlang/otp,dgud/otp,dumbbell/otp,bjorng/otp,lrascao/otp,getong/otp,mikpe/otp,ferd/otp,lrascao/otp,jj1bdx/otp,vinoski/otp,emacsmirror/erlang,isvilen/otp,dgud/otp,emacsmirror/erlang,jj1bdx/otp,dumbbell/otp,bjorng/otp,getong/otp,lrascao/otp,uabboli/otp,vinoski/otp,rlipscombe/otp,g-andrade/otp,getong/otp,getong/otp,ferd/otp,dumbbell/otp,ferd/otp,bjorng/otp,dgud/otp,isvilen/otp,rlipscombe/otp,ferd/otp,emacsmirror/erlang,g-andrade/otp,potatosalad/otp,uabboli/otp,vinoski/otp,potatosalad/otp,rlipscombe/otp,dumbbell/otp,vladdu/otp,mikpe/otp,uabboli/otp,g-andrade/otp,bjorng/otp,lrascao/otp,dumbbell/otp,dgud/otp,vinoski/otp,jj1bdx/otp,potatosalad/otp,bjorng/otp,rlipscombe/otp,rlipscombe/otp,vinoski/otp,lrascao/otp,dgud/otp,mikpe/otp,g-andrade/otp,jj1bdx/otp,ferd/otp,vladdu/otp,vladdu/otp,dumbbell/otp,vladdu/otp,mikpe/otp,uabboli/otp,potatosalad/otp,lrascao/otp,jj1bdx/otp,dgud/otp,mikpe/otp,isvilen/otp,bjorng/otp,isvilen/otp,rlipscombe/otp,uabboli/otp,isvilen/otp,getong/otp,g-andrade/otp,lrascao/otp,bjorng/otp,getong/otp,uabboli/otp,jj1bdx/otp,dumbbell/otp,jj1bdx/otp,dgud/otp,potatosalad/otp,vinoski/otp,lrascao/otp,isvilen/otp,potatosalad/otp,mikpe/otp,isvilen/otp,erlang/otp,jj1bdx/otp,vinoski/otp,uabboli/otp,vladdu/otp,vinoski/otp,dgud/otp,isvilen/otp,erlang/otp,isvilen/otp,ferd/otp,vinoski/otp,emacsmirror/erlang,g-andrade/otp,erlang/otp,uabboli/otp,jj1bdx/otp,rlipscombe/otp,erlang/otp,getong/otp,isvilen/otp,vladdu/otp,g-andrade/otp,dumbbell/otp,g-andrade/otp,bjorng/otp,rlipscombe/otp,vladdu/otp,uabboli/otp,ferd/otp,ferd/otp,ferd/otp,emacsmirror/erlang,vladdu/otp,potatosalad/otp,jj1bdx/otp,erlang/otp,mikpe/otp,lrascao/otp,getong/otp,rlipscombe/otp,erlang/otp,potatosalad/otp,emacsmirror/erlang,potatosalad/otp,vinoski/otp,mikpe/otp,vladdu/otp,emacsmirror/erlang,emacsmirror/erlang,g-andrade/otp,dumbbell/otp,g-andrade/otp,mikpe/otp,emacsmirror/erlang,getong/otp,bjorng/otp