From ab80f734713d5571f9014d17ec1f04d09b38011e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 16 Oct 2019 12:26:36 -0400 Subject: multilingual pods, zipped source --- src/doc_reform/output/hub.d | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/doc_reform/output/hub.d') diff --git a/src/doc_reform/output/hub.d b/src/doc_reform/output/hub.d index a4a402b..227cd3b 100644 --- a/src/doc_reform/output/hub.d +++ b/src/doc_reform/output/hub.d @@ -15,24 +15,22 @@ template outputHub() { mixin Msg; auto msg = Msg!()(doc_matters); static auto rgx = Rgx(); - enum outTask { pod, source, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff } + enum outTask { source_or_pod, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff } void Scheduled(D,I)(int sched, D doc_abstraction, I doc_matters) { auto msg = Msg!()(doc_matters); - if (sched == outTask.source - || sched == outTask.pod - ) { - if (sched == outTask.source) { + if (sched == outTask.source_or_pod) { + if (doc_matters.opt.action.source) { msg.v("doc reform source processing... "); } - if (sched == outTask.pod) { + if (doc_matters.opt.action.pod) { msg.v("doc reform source pod processing... "); } import doc_reform.output.source_pod; DocReformPod!()(doc_matters); - if (sched == outTask.source) { + if (doc_matters.opt.action.source) { msg.vv("doc reform source done"); } - if (sched == outTask.pod) { + if (doc_matters.opt.action.pod) { msg.vv("doc reform source pod done"); } } -- cgit v1.2.3