]> git.cameronkatri.com Git - mandoc.git/blobdiff - term_ascii.c
When in a <PRE>, don't print out the <BR> before lines that have leading
[mandoc.git] / term_ascii.c
index e6024f26b8c2360ebdc51c120b04fc96417600c9..374a2a02e0ca0ab16b70c150419db337b9ddd97a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: term_ascii.c,v 1.9 2010/07/13 23:53:20 schwarze Exp $ */
+/*     $Id: term_ascii.c,v 1.12 2011/01/25 17:32:04 kristaps Exp $ */
 /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -26,6 +26,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 
+#include "mandoc.h"
 #include "out.h"
 #include "term.h"
 #include "main.h"
@@ -47,8 +48,7 @@ ascii_alloc(char *outopts)
        const char      *toks[2];
        char            *v;
 
-       if (NULL == (p = term_alloc(TERMENC_ASCII)))
-               return(NULL);
+       p = term_alloc(TERMENC_ASCII);
 
        p->tabwidth = 5;
        p->defrmargin = 78;
@@ -104,6 +104,7 @@ static void
 ascii_letter(struct termp *p, char c)
 {
        
+       /* LINTED */
        putchar(c);
 }