diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-05 08:36:08 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-05 08:36:08 +0000 |
commit | 66c4f90e09a7087c4d67ff4b0787a27821271eab (patch) | |
tree | df2aa9fac21205908306e26693bfed08ab8fe374 /markdown2pdf | |
parent | e1e9bfc004ddea81e1082362dbd212b3b75ca5ca (diff) | |
download | pandoc-66c4f90e09a7087c4d67ff4b0787a27821271eab.tar.gz |
markdown2pdf: always do at least two runs.
Reason: hyperref bookmarks require this.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1797 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'markdown2pdf')
-rwxr-xr-x | markdown2pdf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/markdown2pdf b/markdown2pdf index 20950e022..9470ae8e8 100755 --- a/markdown2pdf +++ b/markdown2pdf @@ -123,8 +123,10 @@ fi fi fi fi - else + elif [ $runs -gt 1 ]; then # always run at least twice for pdf bookmarks finished=yes + else + runs=$(($runs + 1)) fi done ) || exit $? |