diff options
Diffstat (limited to 'org/doc_reform.org')
-rw-r--r-- | org/doc_reform.org | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/org/doc_reform.org b/org/doc_reform.org index 6b08fd2..995dde6 100644 --- a/org/doc_reform.org +++ b/org/doc_reform.org @@ -454,7 +454,7 @@ if (helpInfo.helpWanted) { #+NAME: doc_reform_args #+BEGIN_SRC d -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 } struct OptActions { bool assertions() { return opts["assertions"]; @@ -573,6 +573,9 @@ struct OptActions { bool source() { return opts["source"]; } + bool source_or_pod() { + return (opts["pod"] || opts["source"]) ? true : false; + } bool sqlite_discrete() { return opts["sqlite-discrete"]; } @@ -677,8 +680,7 @@ struct OptActions { || odt || latex || manifest - || pod - || source + || source_or_pod || sqlite_discrete ) { _is = true; @@ -690,11 +692,8 @@ struct OptActions { } auto output_task_scheduler() { int[] schedule; - if (pod) { - schedule ~= outTask.pod; - } - if (source) { - schedule ~= outTask.source; + if (source_or_pod) { + schedule ~= outTask.source_or_pod; } if (sqlite_discrete) { schedule ~= outTask.sqlite; @@ -723,8 +722,7 @@ struct OptActions { bool _is; if (opts["abstraction"] || concordance - || source - || pod + || source_or_pod || harvest || html || epub |