Fix VERSION expansion in -version and -help. https://gitlab.com/grobian/html2text/-/issues/69 https://gitlab.com/grobian/html2text/-/commit/5ab68b767ffdf574658e0795db2bfa49971e6a6a --- html2text.cpp.orig +++ html2text.cpp @@ -18,6 +18,10 @@ * GNU General Public License in the file COPYING for more details. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include @@ -66,7 +68,7 @@ main(int argc, char **argv) { if (argc == 2 && !strcmp(argv[1], "-help")) { std::cout - << "This is html2text, version " stringify(VERSION) << std::endl + << "This is html2text, version " VERSION << std::endl << std::endl << usage; exit(0); @@ -74,7 +76,7 @@ main(int argc, char **argv) if (argc == 2 && !strcmp(argv[1], "-version")) { std::cout - << "This is html2text, version " stringify(VERSION) << std::endl + << "This is html2text, version " VERSION << std::endl << std::endl << "The latest version can be found at " << "https://gitlab.com/grobian/html2text" << std::endl