Files
trustbyte cd9924a517 html2text: Update to 2.4.0
Co-authored-by: Ryan Carsten Schmidt <ryandesign@macports.org>
2025-10-15 16:48:29 -05:00

36 lines
1.0 KiB
Diff

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 <iostream>
#include <string.h>
#include <stdlib.h>
@@ -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