## The %- and -% syntax is used everywhere to trim all the whitespace, to make sure no extra unwanted spaces are around the type name, for example if it's displayed between parens. {%- macro type_name(message_field) -%} {%- if message_field.package and message_field.type_kind != "UNKNOWN" -%} {%- if message_field.type_kind == "MESSAGE" -%} {%- else -%} {%- endif -%} {{ message_field.full_type }} {%- else -%} {{ message_field.full_type }} {%- endif -%} {%- endmacro -%}