Ticket #44976

generate_packets.py: don't indent preprocessor directives

Open Date: 2022-07-02 06:03 Last Update: 2022-07-03 21:34

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Part of #43927. For better readability (and thus debuggability) of the generated code, preprocessor directives should not be indented (to keep in style with the non-generated codebase). Make the prefix() function not indent lines starting with a #.

Ticket History (3/4 Histories)

2022-07-02 06:03 Updated by: alienvalkyrie
  • New Ticket "generate_packets.py: don't indent preprocessor directives" created
2022-07-02 06:21 Updated by: alienvalkyrie
  • Resolution Update from None to Accepted
Comment

This patch also makes it so blank lines are no longer indented, something that I (mistakenly) thought had already been the case.

2022-07-03 21:34 Updated by: alienvalkyrie
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login