File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -132,19 +132,19 @@ const ContentWriter = struct {
132132 for (data .partitions ) | mpart | {
133133 if (mpart ) | part | {
134134 try cw .code .writeAll (" part\n " );
135+ try cw .code .print (" type {s}\n " , .{@tagName (part .type )});
135136 if (part .bootable ) {
136- try cw .code .print (" type {s}\n " , .{@tagName (part .type )});
137137 try cw .code .writeAll (" bootable\n " );
138- if (part .offset ) | offset | {
139- try cw .code .print (" offset {d}\n " , .{offset });
140- }
141- if (part .size ) | size | {
142- try cw .code .print (" size {d}\n " , .{size });
143- }
144- try cw .code .writeAll (" contains" );
145- try cw .render (part .data );
146- try cw .code .writeAll ("\n " );
147138 }
139+ if (part .offset ) | offset | {
140+ try cw .code .print (" offset {d}\n " , .{offset });
141+ }
142+ if (part .size ) | size | {
143+ try cw .code .print (" size {d}\n " , .{size });
144+ }
145+ try cw .code .writeAll (" contains" );
146+ try cw .render (part .data );
147+ try cw .code .writeAll ("\n " );
148148 try cw .code .writeAll (" endpart\n " );
149149 } else {
150150 try cw .code .writeAll (" ignore\n " );
You can’t perform that action at this time.
0 commit comments