*************** *** 501,506 **** text[tptr - iptr] = NUL; pf_output_text (text); /* Get the tag text. */ if (sscanf (tptr, "<%[^>]>", tag) != 1) { --- 501,513 ---- text[tptr - iptr] = NUL; pf_output_text (text); + /* Catch and ignore completely empty tags. */ + if (strchr (tptr, GREATERTHAN) == tptr + 1) + { + iptr = tptr + 2; + continue; + } + /* Get the tag text. */ if (sscanf (tptr, "<%[^>]>", tag) != 1) {