#12890: don't emit <p> tags in text mode when logdir specified.

Patch by Jeff McNeil.
diff --git a/Misc/ACKS b/Misc/ACKS
index ba6be3c..9211e63 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -644,6 +644,7 @@
 Gordon McMillan
 Caolan McNamara
 Andrew McNamara
+Jeff McNeil
 Craig McPheeters
 Lambert Meertens
 Bill van Melle
diff --git a/Misc/NEWS b/Misc/NEWS
index 216346e..8df6477 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -122,6 +122,9 @@
 Library
 -------
 
+- Issue #12890: cgitb no longer prints spurious <p> tags in text
+  mode when the logdir option is specified.
+
 - Issue #14398: Fix size truncation and overflow bugs in the bz2 module.
 
 - Issue #5148: Ignore 'U' in mode given to gzip.open() and gzip.GzipFile().