about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pnmtops.c5
-rw-r--r--doc/HISTORY4
2 files changed, 6 insertions, 3 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c
index 0a3379dc..316b7626 100644
--- a/converter/other/pnmtops.c
+++ b/converter/other/pnmtops.c
@@ -793,10 +793,9 @@ asciiHexFilter(FILE *          const ifP,
                 outbuff[i*2]   = hexits[item >> 4];
                 outbuff[i*2+1] = hexits[item & 15];
             }
+            outbuff[readCt * 2] = '\n';
+            writeFile(outbuff, readCt * 2 + 1, "asciiHex filter", ofP);
         }
-        outbuff[readCt * 2] = '\n';
-
-        writeFile(outbuff, readCt * 2 + 1, "asciiHex filter", ofP);
     }
 
     fclose(ifP);
diff --git a/doc/HISTORY b/doc/HISTORY
index 2602f0bb..c27b1f3b 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -13,6 +13,10 @@ not yet  BJH  Release 10.65.00
               In particular, if the image or page is square, image will always
               be in portrait (not rotated).
 
+              pnmtops: Fix spurious blank line in asciihex encoding of the
+              image raster.  Probably harmless.  Introduced in 10.56
+              (September 2011).
+
               pnmtops: Fix crash with 12 bits per sample.  Introduced in 10.53
               (December 2010).  Thanks Prophet of the Way <afu@wta.att.ne.jp>.