protobuf.Text icon indicating copy to clipboard operation
protobuf.Text copied to clipboard

Fixed empty line after formating repeated

Open nimrof opened this issue 2 years ago • 0 comments

This fixes a "cosmetic bug" that formatting of repeated generates a extra empty line after it is done

afik. the source of the problem is that first is not set when printing repeated as the loop ends with continue. https://github.com/SciSharp/protobuf.Text/blob/5cf2c4661d43aba466a6fa4c830c7857a5e5dee9/src/protobuf.Text/TextFormatter.cs#L244-L252

After this is fixed there is a line generated before new fields is formatted, but the repeated formatting is already compensating for the missing separator so it needs to be fixed to and that is the changes from line 290+

nimrof avatar Oct 10 '23 08:10 nimrof