From 828682da4322d21a1ab27bc9d8594001fb00d940 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 29 Nov 2019 20:08:40 +0000 Subject: [PATCH 1/1] make-secnet-sites: pline: Break up `copyout' Now we have `copyout_core' and `indent', too. We are going to want to reuse these. Signed-off-by: Ian Jackson --- make-secnet-sites | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make-secnet-sites b/make-secnet-sites index ceb708f..38badbb 100755 --- a/make-secnet-sites +++ b/make-secnet-sites @@ -605,9 +605,9 @@ def pline(il,filterstate,allow_include=False): w=list([Tainted(x) for x in w]) keyword=w[0] current=obstack[len(obstack)-1] - copyout=lambda: [' '*len(obstack) + - ' '.join([ww.output() for ww in w]) + - '\n'] + copyout_core=lambda: ' '.join([ww.output() for ww in w]) + indent=' '*len(obstack) + copyout=lambda: [indent + copyout_core() + '\n'] if keyword=='end-definitions': keyword.raw_mark_ok() allow_defs=sitelevel.depth -- 2.30.2