version 1.57, 2013/12/25 22:00:45 |
version 1.59, 2014/03/23 11:25:26 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
#include <string.h> |
#include <string.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
|
#include "mandoc_aux.h" |
#include "out.h" |
#include "out.h" |
#include "man.h" |
#include "man.h" |
#include "mdoc.h" |
#include "mdoc.h" |
Line 365 print_word(const char *s) |
|
Line 366 print_word(const char *s) |
|
case (ASCII_HYPH): |
case (ASCII_HYPH): |
putchar('-'); |
putchar('-'); |
break; |
break; |
|
case (ASCII_BREAK): |
|
printf("\\:"); |
|
break; |
case (' '): |
case (' '): |
if (MMAN_nbrword & outflags) { |
if (MMAN_nbrword & outflags) { |
printf("\\ "); |
printf("\\ "); |
Line 458 print_offs(const char *v) |
|
Line 462 print_offs(const char *v) |
|
/* |
/* |
* Set up the indentation for a list item; used from pre_it(). |
* Set up the indentation for a list item; used from pre_it(). |
*/ |
*/ |
void |
static void |
print_width(const char *v, const struct mdoc_node *child, size_t defsz) |
print_width(const char *v, const struct mdoc_node *child, size_t defsz) |
{ |
{ |
char buf[24]; |
char buf[24]; |
Line 510 print_width(const char *v, const struct mdoc_node *chi |
|
Line 514 print_width(const char *v, const struct mdoc_node *chi |
|
TPremain = remain; |
TPremain = remain; |
} |
} |
|
|
void |
static void |
print_count(int *count) |
print_count(int *count) |
{ |
{ |
char buf[12]; |
char buf[12]; |