From 79fdbcea695e41a7d5033f50ac3e99ae52312949 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Wed, 15 Nov 2006 00:34:32 +0000 Subject: Remove ' -- ' prefix instead of '--' in passed-through options. git-svn-id: https://pandoc.googlecode.com/svn/trunk@101 788f1e2b-df1e-0410-8736-df70ead52e1b --- html2markdown | 2 +- latex2markdown | 2 +- markdown2html | 2 +- markdown2latex | 2 +- markdown2pdf | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html2markdown b/html2markdown index bd248ca1f..9549bc4e1 100644 --- a/html2markdown +++ b/html2markdown @@ -26,7 +26,7 @@ ALL="$*" ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant set -- $ARGS -REST=${ALL#$ARGS}; REST=${REST#--} +REST=${ALL#$ARGS}; REST=${REST# -- } PANDOC_OPTS=${REST:-$PANDOC_OPTS} infile=$1 diff --git a/latex2markdown b/latex2markdown index 8f935aef5..3974f279a 100644 --- a/latex2markdown +++ b/latex2markdown @@ -25,7 +25,7 @@ ALL="$*" ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant set -- $ARGS -REST=${ALL#$ARGS}; REST=${REST#--} +REST=${ALL#$ARGS}; REST=${REST# -- } PANDOC_OPTS=${REST:-$PANDOC_OPTS} iconv -t utf-8 $* | pandoc $PANDOC_OPTS -r latex -w markdown -s | \ diff --git a/markdown2html b/markdown2html index 3c8647d77..285dd866a 100644 --- a/markdown2html +++ b/markdown2html @@ -25,7 +25,7 @@ ALL="$*" ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant set -- $ARGS -REST=${ALL#$ARGS}; REST=${REST#--} +REST=${ALL#$ARGS}; REST=${REST# -- } PANDOC_OPTS=${REST:-$PANDOC_OPTS} iconv -t utf-8 $* | pandoc $PANDOC_OPTS | iconv -f utf-8 diff --git a/markdown2latex b/markdown2latex index 3e4d1da24..9fafbafa5 100644 --- a/markdown2latex +++ b/markdown2latex @@ -25,7 +25,7 @@ ALL="$*" ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant set -- $ARGS -REST=${ALL#$ARGS}; REST=${REST#--} +REST=${ALL#$ARGS}; REST=${REST# -- } PANDOC_OPTS=${REST:-$PANDOC_OPTS} iconv -t utf-8 $* | pandoc $PANDOC_OPTS -w latex -s | iconv -f utf-8 diff --git a/markdown2pdf b/markdown2pdf index 993207d05..0307f73cf 100644 --- a/markdown2pdf +++ b/markdown2pdf @@ -25,7 +25,7 @@ ALL="$*" ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant set -- $ARGS -REST=${ALL#$ARGS}; REST=${REST#--} +REST=${ALL#$ARGS}; REST=${REST# -- } PANDOC_OPTS=${REST:-$PANDOC_OPTS} outfile= -- cgit v1.2.3