diff options
author | Andras Timar <atimar@suse.com> | 2013-02-13 16:28:16 +0100 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-02-13 16:37:35 +0100 |
commit | a775aa57f7b1d5f0f69b8faa5277d1914455ba38 (patch) | |
tree | 5aa3130772eba2cc2285cdff43b3947451449e84 /helpcompiler/source/HelpLinker.cxx | |
parent | 4552bd5a7c61c4f9428ad73e19bbee5b78e510ab (diff) |
compact help xml files with xslt which removes the cruft
Change-Id: Iee923174169d6ba9961a9cee14115c9a4bf7ba09
Diffstat (limited to 'helpcompiler/source/HelpLinker.cxx')
-rw-r--r-- | helpcompiler/source/HelpLinker.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index 4bbe2b6bd23e..6d00f67742e3 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -378,7 +378,7 @@ void HelpLinker::link() throw( HelpProcessingException ) } HelpCompiler hc( streamTable, xhpFile, langsourceRoot, zipdir, - embeddStylesheet, module, lang, bExtensionMode ); + compactStylesheet, embeddStylesheet, module, lang, bExtensionMode ); HCDBG(std::cerr << "before compile of " << xhpFileName << std::endl); bool success = hc.compile(); @@ -608,6 +608,18 @@ void HelpLinker::main( std::vector<std::string> &args, bSrcOption = true; sourceRoot = fs::path(args[i], fs::native); } + else if (args[i].compare("-compact") == 0) + { + ++i; + if (i >= args.size()) + { + std::stringstream aStrStream; + aStrStream << "compactStylesheet missing" << std::endl; + throw HelpProcessingException( HELPPROCESSING_GENERAL_ERROR, aStrStream.str() ); + } + + compactStylesheet = fs::path(args[i], fs::native); + } else if (args[i].compare("-sty") == 0) { ++i; |