From 9dc8ec2d21ba6b594544aba26d524db536c214f4 Mon Sep 17 00:00:00 2001 From: Leytou Date: Tue, 15 Aug 2023 11:36:06 +0800 Subject: [PATCH] fix: luismartingarcia/protocol/#9 --- src/protocolplus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocolplus.py b/src/protocolplus.py index 1596701..d9944a4 100755 --- a/src/protocolplus.py +++ b/src/protocolplus.py @@ -594,7 +594,8 @@ def __str__(self): lines.append( self._get_horizontal(textline=textline, fields=proto_fields, bottom=bottom) ) - + # increment field counter + fields_done+=1 # Case 2: We are not at the beginning of the line and we need # to print something that does not fit in the current line else: