|
@@ -197,6 +197,7 @@ def transliterate(src, lang, r2s=False):
|
|
|
|
|
|
|
|
|
|
def _run_hook(hname, ctx, hooks):
|
|
def _run_hook(hname, ctx, hooks):
|
|
|
|
+ ret = None
|
|
for hook_def in hooks.get(hname, []):
|
|
for hook_def in hooks.get(hname, []):
|
|
kwargs = hook_def[1] if len(hook_def > 1) else {}
|
|
kwargs = hook_def[1] if len(hook_def > 1) else {}
|
|
ret = hook_def[0](ctx, **kwargs)
|
|
ret = hook_def[0](ctx, **kwargs)
|