Skip to content

Commit

Permalink
Show only word count in debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
elifarley committed Dec 9, 2024
1 parent fbf57ae commit f998c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cedartl/cedartl_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def replace_template(match: Match) -> str:

self._processing_stack.add(template_name)
template_content = self.load_template(template_name)
if f"\\{template_name}" != template_content:
print(f'[CedarTL] \\{template_name}: {template_content.strip()}')
if f"\\{template_name}" != template_content and template_content:
print(f'[CedarTL] \\{template_name}: {len(template_content.strip().split(" "))} words')
result = self.process(prev + template_content)
self._processing_stack.remove(template_name)
return result
Expand Down

0 comments on commit f998c95

Please sign in to comment.