git.iko.soy/typeable/pandoc
on master help sign in
Better error messages in markdown2pdf: print only the latex errors,
66676b8fiddlosopher
markdown2pdf+1−1
@@ -88,7 +88,7 @@ iconv -f utf-8 > $TEMP/$BASE.tex && (
88 cd $TEMP
88 cd $TEMP
89 if ! pdflatex -interaction=batchmode $BASE.tex >/dev/null 2>&1; then
89 if ! pdflatex -interaction=batchmode $BASE.tex >/dev/null 2>&1; then
90 echo >&2 "LaTeX errors:"
90 echo >&2 "LaTeX errors:"
91− cat >&2 $BASE.log
91+ sed -ne '/^!/,/^ *$/p' $BASE.log >&2
92 exit 1
92 exit 1
93 fi
93 fi
94) || exit $?
94) || exit $?