From 4a0d1de4f72785f101c5db0006a931972efc4484 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 12 Jul 2018 11:56:33 -0400 Subject: html flags --- org/output_hub.org | 24 +++--------------------- org/sdp.org | 30 +++++++++++++++++++++++++----- 2 files changed, 28 insertions(+), 26 deletions(-) (limited to 'org') diff --git a/org/output_hub.org b/org/output_hub.org index 9caf1a9..b90d637 100644 --- a/org/output_hub.org +++ b/org/output_hub.org @@ -143,15 +143,7 @@ if (doc_matters.opt.action.text) { #+name: output_options #+BEGIN_SRC d -if (doc_matters.opt.action.html) { - if ((doc_matters.opt.action.verbose)) { - writeln("html scroll processing... "); - } - outputHTML!().scroll(doc_abstraction, doc_matters); - if ((doc_matters.opt.action.verbose) - && (doc_matters.opt.action.debug_do)) { - writeln("html scroll done"); - } +if (doc_matters.opt.action.html_seg) { if ((doc_matters.opt.action.verbose)) { writeln("html seg processing... "); } @@ -162,18 +154,8 @@ if (doc_matters.opt.action.html) { } outputHTML!().css(doc_matters); outputHTML!().images_cp(doc_matters); -} else if (doc_matters.opt.action.html_seg) { - if ((doc_matters.opt.action.verbose)) { - writeln("html seg processing... "); - } - outputHTML!().seg(doc_abstraction, doc_matters); - if ((doc_matters.opt.action.verbose) - && (doc_matters.opt.action.debug_do)) { - writeln("html seg done"); - } - outputHTML!().css(doc_matters); - outputHTML!().images_cp(doc_matters); -} else if (doc_matters.opt.action.html_scroll) { +} +if (doc_matters.opt.action.html_scroll) { if ((doc_matters.opt.action.verbose)) { writeln("html scroll processing... "); } diff --git a/org/sdp.org b/org/sdp.org index 4144630..727b16a 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -345,13 +345,35 @@ struct OptActions { return opts["epub"]; } auto html() { - return opts["html"]; + bool _is; + if ( + opts["html"] + || opts["html-seg"] + || opts["html-scroll"] + ) { + _is = true; + } else { _is = false; } + return _is; } auto html_seg() { - return opts["html-seg"]; + bool _is; + if ( + opts["html"] + || opts["html-seg"] + ) { + _is = true; + } else { _is = false; } + return _is; } auto html_scroll() { - return opts["html-scroll"]; + bool _is; + if ( + opts["html"] + || opts["html-scroll"] + ) { + _is = true; + } else { _is = false; } + return _is; } auto manifest() { return opts["manifest"]; @@ -445,8 +467,6 @@ struct OptActions { || docbook || epub || html - || html_seg - || html_scroll || manifest || odt || pdf -- cgit v1.2.3