From 264209da4a75cf323caf3e1a5e89534f15086b73 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 5 May 2017 13:17:54 +0000 Subject: move .ll to the roff modules --- roff_term.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'roff_term.c') 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 + * Copyright (c) 2010, 2014, 2017 Ingo Schwarze * * 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 #include +#include #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); +} -- cgit v1.2.3-56-ge451