From 75372f1f9e31412db0b09d719e1220fac9cfd6c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Sat, 6 Nov 2010 05:58:07 +0100
Subject: fix datahandler

bug introduced in e83fde09346d4706f0b5d262b7950c0d05389757
---
 luatexbase-mcb.dtx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'luatexbase-mcb.dtx')

diff --git a/luatexbase-mcb.dtx b/luatexbase-mcb.dtx
index 4bbbcb7..bace1f9 100644
--- a/luatexbase-mcb.dtx
+++ b/luatexbase-mcb.dtx
@@ -592,6 +592,7 @@ local function datahandler (name)
         for _, f in ipairs(callbacklist[name]) do
             data = f.func(data, ...)
         end
+        return data
     end
 end
 %    \end{macrocode}
@@ -1017,12 +1018,10 @@ end
 %    \begin{macrocode}
 function add_process_input_buffer()
     luatexbase.add_to_callback('process_input_buffer', function(buffer)
-            texio.write_nl("I'm a dummy process_input_buffer")
             return buffer.."\\msg{dummy}"
         end,
         'dummy process_input_buffer')
     luatexbase.add_to_callback('process_input_buffer', function(buffer)
-            texio.write_nl("I'm an other dummy process_input_buffer")
             return buffer.."\\msg{otherdummy}"
         end,
         'other dummy process_input_buffer')
-- 
cgit v1.2.3

