From 9b159b058024ef075e8d8dbc86f11191dbd136f9 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Wed, 1 Jun 2011 09:06:26 -0400 Subject: [PATCH] fix string comparison, release 1.0 Signed-off-by: Jim Pryor --- pandoc.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pandoc.pm b/pandoc.pm index 441b71e..ec3706d 100755 --- a/pandoc.pm +++ b/pandoc.pm @@ -155,9 +155,10 @@ sub htmlize ($@) { push @args, '--section-divs'; }; - unless ($config{pandoc_codeclasses} == "") { - push @args, '--indented-code-classes=' . $config{pandoc_codeclasses}; - }; + if ($config{pandoc_codeclasses} && ($config{pandoc_codeclasses} ne "")) { + push @args, '--indented-code-classes=' . $config{pandoc_codeclasses}; + }; + for ($config{pandoc_math}) { if (/^mathjax$/) { -- 2.39.2