From d7c2ad344287f1cf18d54d2b1f96613a220189d1 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:06:08 -0600 Subject: [PATCH] rewrite strip_nastyhtml, strip_html in Qt (#1341) * rewrite strip_html with QString. * rewrite strip_nasty_html in Qt. and actually produce valid html: 1. the replacement for "
", "", is invalid. 2. leaving an html tag in causes the html format output to be invalid. * cleanup comment xstrdup * use regex for strip_html * strip_html deletes other tags * fix strip_html img tag handling * Revert "fix strip_html img tag handling" This reverts commit b0440f7e3729909fd51ecbbacdd7a7e4aa5d9198. * Revert "strip_html deletes other tags" This reverts commit 40fe2ef0153d8c2e6d53432b9184f8acffbab2ef. * Revert "use regex for strip_html" This reverts commit 677da95a77b335bfa686a35fc33e862f8b50f053. * implement strip_html using QRegularExpressionMatchIterator. * a little cleanup * remove obsolete include * take care to distinguish tags with common roots like p, param, pre. * suppress InvalidReads in qhash. These are known to occur per comment in qhash.cpp. * supress qhash false positive with libqt6core6/jammy-updates,now 6.2.4+dfsg-2ubuntu1.1 amd64 * suppress vg warnings on noble (intermittant). * install qt core dbgsyms for valgrind suppression. * kill space preceding newline when stripping html. * use modernize-raw-string-literal * valgrind suppressions for f40 * add symbols for fedora valgrind suppression. --- exif.cc | 2 +- gpsbabel.supp | 36 ++++++ reference/gc/GC7FA4.text | 12 +- reference/gc/GCGCA8-encoded.txt | 2 +- reference/gc/GCGCA8.txt | 2 +- reference/gc/GCGCA8_nasty.gpx | 80 ++++++++++++ reference/gc/GCGCA8_nasty.html | 55 ++++++++ reference/gc/GCGCA8~vcard.vcf | 2 +- testo | 1 + testo.d/text.test | 4 + tools/Dockerfile_f37 | 4 + tools/Dockerfile_f38 | 4 + tools/Dockerfile_f39 | 6 +- tools/Dockerfile_f40 | 6 +- tools/Dockerfile_jammy | 6 + tools/Dockerfile_noble | 8 ++ util.cc | 223 ++++++++++---------------------- 17 files changed, 284 insertions(+), 169 deletions(-) create mode 100644 reference/gc/GCGCA8_nasty.gpx create mode 100644 reference/gc/GCGCA8_nasty.html diff --git a/exif.cc b/exif.cc index cece53d16..8cf300fda 100644 --- a/exif.cc +++ b/exif.cc @@ -63,7 +63,7 @@ #include
+ GCGCA8 - Oozy rat in a sanitary zoo
+
+ GCGCA8 - N35°55.300 W86°51.700 (16S 512480 3975269) |
+
+ 3 / 2 |
+
+ The cache is at the coordinates above. These coords will get +you to the correct park and within 1/2 mile of the cache. The cache +is within 35 feet of the trail. It is not handicapped accessible. +It is a nice walk in the woods that is practical for all ages. +There is no space in the container for trading items. You should +bring a writing stick and bug spray is recommended. So if the cache isn't at the above coordinates, where is it? +
+ + |
+