aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-07-12 11:56:33 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:15 -0400
commit4a0d1de4f72785f101c5db0006a931972efc4484 (patch)
treec12973b920884eac5954e28b519cf8868d0dbaa1 /src
parentmake string object_number a property of int o_n (diff)
html flags
Diffstat (limited to 'src')
-rw-r--r--src/sdp/output/hub.d24
-rwxr-xr-xsrc/sdp/sdp.d30
2 files changed, 28 insertions, 26 deletions
diff --git a/src/sdp/output/hub.d b/src/sdp/output/hub.d
index b86d30d..b6caca9 100644
--- a/src/sdp/output/hub.d
+++ b/src/sdp/output/hub.d
@@ -75,15 +75,7 @@ template outputHub() {
writeln("text processing... ");
}
}
- 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... ");
}
@@ -94,18 +86,8 @@ template outputHub() {
}
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/src/sdp/sdp.d b/src/sdp/sdp.d
index 8b8703f..0c2c271 100755
--- a/src/sdp/sdp.d
+++ b/src/sdp/sdp.d
@@ -167,13 +167,35 @@ void main(string[] args) {
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"];
@@ -267,8 +289,6 @@ void main(string[] args) {
|| docbook
|| epub
|| html
- || html_seg
- || html_scroll
|| manifest
|| odt
|| pdf