diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-02-03 22:16:52 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-02-04 00:09:39 -0500 |
commit | 9f278652ce86604c11d8c2b51c7ed255e7e1d1f6 (patch) | |
tree | f6b5fb00291f1ecca0262192af65308ec9b93f14 /lib/sisu/v4/urls.rb | |
parent | v4 (v3): css (html & epub) line spacing reduced, paragraph spacing increased (diff) |
v4: html (urls), scroll & seg optionally discrete, individually callable
* --html (both), --html-scroll, --html-seg
* [possibly of interest where only one form of html of interest for use &/or to
cut generation time (roughly to 63% for --html-scroll only)]
Diffstat (limited to 'lib/sisu/v4/urls.rb')
-rw-r--r-- | lib/sisu/v4/urls.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/sisu/v4/urls.rb b/lib/sisu/v4/urls.rb index a9a27bff..5e6bcc8a 100644 --- a/lib/sisu/v4/urls.rb +++ b/lib/sisu/v4/urls.rb @@ -316,11 +316,17 @@ module SiSU_Urls show.epub(x) end if x=~/--html\b/ \ - and @opt.act[:html][:set]==:on + and (@opt.act[:html][:set]==:on \ + or @opt.act[:html_scroll][:set]==:on \ + or @opt.act[:html_seg][:set]==:on) if x =~/scroll/ - show.html.scroll(x) + if @opt.act[:html_scroll][:set]==:on + show.html.scroll(x) + end else - show.html.toc(x) + if @opt.act[:html_seg][:set]==:on + show.html.toc(x) + end end end if x=~/--texinfo\b/ \ |