diff --git a/scripts/process-text-files.py b/scripts/process-text-files.py index 96e6214..8209843 100644 --- a/scripts/process-text-files.py +++ b/scripts/process-text-files.py @@ -69,7 +69,9 @@ class Cmd(jwutils.Cmd): if right_align_match > 0: parts[1] = parts[1].rjust(right_align_match) if len(parts) > 2: - parts[2] = ' ' + parts[2].strip() + p2_stripped = parts[2].strip() + if len(p2_stripped) or len(parts) > 3: + parts[2] = ' ' + p2_stripped r += parts[0].rstrip().ljust(indent) + ''.join(parts[1:]) + '\n' assignments += 1 if min_assignments is not None and assignments < min_assignments: