diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-05 13:17:54 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-05-05 13:17:54 +0000 |
commit | 264209da4a75cf323caf3e1a5e89534f15086b73 (patch) | |
tree | 48a9e3b0104477eb2934ee5b430c3f5e31d3ecc2 /roff_term.c | |
parent | ecf3d7a66ad4080c5dabd04c50179340b4f39242 (diff) | |
download | mandoc-264209da4a75cf323caf3e1a5e89534f15086b73.tar.gz mandoc-264209da4a75cf323caf3e1a5e89534f15086b73.tar.zst mandoc-264209da4a75cf323caf3e1a5e89534f15086b73.zip |
move .ll to the roff modules
Diffstat (limited to 'roff_term.c')
-rw-r--r-- | roff_term.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/roff_term.c b/roff_term.c index cd9fba37..783bd2ee 100644 --- a/roff_term.c +++ b/roff_term.c @@ -1,6 +1,6 @@ /* $OpenBSD$ */ /* - * Copyright (c) 2010, 2017 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010, 2014, 2017 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,6 +17,7 @@ #include <sys/types.h> #include <assert.h> +#include <stddef.h> #include "roff.h" #include "out.h" @@ -28,10 +29,12 @@ typedef void (*roff_term_pre_fp)(ROFF_TERM_ARGS); static void roff_term_pre_br(ROFF_TERM_ARGS); static void roff_term_pre_ft(ROFF_TERM_ARGS); +static void roff_term_pre_ll(ROFF_TERM_ARGS); static const roff_term_pre_fp roff_term_pre_acts[ROFF_MAX] = { roff_term_pre_br, /* br */ roff_term_pre_ft, /* ft */ + roff_term_pre_ll, /* ft */ }; @@ -78,3 +81,9 @@ roff_term_pre_ft(ROFF_TERM_ARGS) break; } } + +static void +roff_term_pre_ll(ROFF_TERM_ARGS) +{ + term_setwidth(p, n->child != NULL ? n->child->string : NULL); +} |