git.iko.soy/typeable/pandoc
on master help sign in
Better error messages in markdown2pdf: print only the latex errors,

not the whole log file. git-svn-id: https://pandoc.googlecode.com/svn/trunk@98 788f1e2b-df1e-0410-8736-df70ead52e1b

commit66676b88dbda66dd6107c29b9ff70f0be942fca0 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 14 Nov 2006, 01:32 (20 years ago) parent19486ee
1 file changed+1−1
markdown2pdf+1−1
markdown2pdf+1−1
@@ -88,7 +88,7 @@ iconv -f utf-8 > $TEMP/$BASE.tex && (
8888 cd $TEMP
8989 if ! pdflatex -interaction=batchmode $BASE.tex >/dev/null 2>&1; then
9090 echo >&2 "LaTeX errors:"
91− cat >&2 $BASE.log
91+ sed -ne '/^!/,/^ *$/p' $BASE.log >&2
9292 exit 1
9393 fi
9494) || exit $?