From 765ec0a8338c49c26609bb52cc62ded3a5b6c8dc Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Tue, 28 Aug 2018 12:09:30 +0200
Subject: do not create any external file in case export global option is set
 to false

---
 arabluatex.dtx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'arabluatex.dtx')

diff --git a/arabluatex.dtx b/arabluatex.dtx
index 44d443c..9feb4aa 100644
--- a/arabluatex.dtx
+++ b/arabluatex.dtx
@@ -4261,10 +4261,11 @@ wa-ya.sIru ta.hta 'l-jild-i
 \DeclareOptionX{novoc}{\def\al@mode{novoc}}
 \DeclareOptionX{trans}{\def\al@mode{trans}}
 \define@boolkey{arabluatex.sty}[@pkg@]{export}[true]{%
+  \if@pkg@export%
   \AtBeginDocument{\luadirect{al_openstream()}%
     \MkArbBreak{@al@ob,@al@cb,@al@cb@sp}}
   \AtEndDocument{\luadirect{al_closestream()}}
-}
+  \else\fi}
 \ExecuteOptionsX{voc}
 \ProcessOptionsX\relax
 \def\al@mode@voc{voc}
-- 
cgit v1.2.3

