stagit

static git page generator  https://git.ce9e.org
git clone https://git.ce9e.org/stagit.git

commit
fd9f7d75bbf05c9bc57cb5ad81f0f6ef58eaa9aa
parent
36d9a8f957389fd46146b4f16725eb00e7a48672
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-08-07 19:01
ctpl: rm unused indent parameter

Fixup to a30365a2d653297d6fffae202aa12cb8f08a175e

Diffstat

M src/ctpl.py 6 +++---

1 files changed, 3 insertions, 3 deletions


diff --git a/src/ctpl.py b/src/ctpl.py

@@ -19,7 +19,7 @@ def tokenize(s):
   19    19 	return tokens
   20    20 
   21    21 
   22    -1 def print_safe(s, args, indent):
   -1    22 def print_safe(s, args):
   23    23 	if args:
   24    24 		return ['fprintf(fp, "%s", %s);' % (s, ', '.join(args))]
   25    25 	elif s:
@@ -39,7 +39,7 @@ def parse_line(indent, tpl):
   39    39 			s += placeholder
   40    40 			args.append(arg)
   41    41 		else:
   42    -1 			lines += print_safe(s, args, indent)
   -1    42 			lines += print_safe(s, args)
   43    43 			s = ''
   44    44 			args = []
   45    45 
@@ -50,7 +50,7 @@ def parse_line(indent, tpl):
   50    50 				l = 'strlen(%s)' % token
   51    51 
   52    52 			lines.append('xmlencode(fp, %s, %s);' % (arg, l))
   53    -1 	lines += print_safe(s, args, indent)
   -1    53 	lines += print_safe(s, args)
   54    54 
   55    55 	print(indent + ' '.join(lines))
   56    56