Skip to content

Commit b800727

Browse files
authored
De-dent protobuf definitions (#529)
The protobuf definitions were indented once. This made it difficult to read the message definitions as the reader always thinks that the message definitions are nested. In this patch, we dedent the message definitions so that they start at the beginning of the line.
1 parent 779234d commit b800727

File tree

6 files changed

+3492
-3493
lines changed
  • aas_core_codegen/protobuf/structure
  • test_data/proto/test_main/expected
    • aas_core_meta.v3/expected_output
    • abstract_and_concrete_classes/expected_output
    • concrete_class_with_enum/expected_output
    • concrete_class_with_list_of_instances/expected_output
    • concrete_class_with_primitive_attributes/expected_output

6 files changed

+3492
-3493
lines changed

aas_core_codegen/protobuf/structure/_generate.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
Identifier,
2222
assert_never,
2323
Stripped,
24-
indent_but_first_line,
2524
)
2625
from aas_core_codegen.protobuf import (
2726
common as proto_common,
@@ -527,7 +526,7 @@ def generate(
527526
package {namespace};
528527
529528
530-
{I}{indent_but_first_line(code_blocks_joined, I)}"""
529+
{code_blocks_joined}"""
531530
),
532531
proto_common.WARNING,
533532
] # type: List[Stripped]

0 commit comments

Comments
 (0)