1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

fix filename path issue

This commit is contained in:
Lu Wang 2012-08-16 15:41:32 +08:00
parent 9514ebc598
commit 63734c608c

View File

@ -234,7 +234,7 @@ int main(int argc, char **argv)
if(param.output_filename == "")
{
const auto & s = param.input_filename;
const string s = path(param.input_filename).string();
if(boost::algorithm::ends_with(s, ".pdf"))
{
param.output_filename = s.substr(0, s.size() - 4) + ".html";