From 708aac559f946555997408dcef3b1cfb9cd09e13 Mon Sep 17 00:00:00 2001 From: Mattias Wallin Date: Wed, 4 Feb 2026 08:15:30 +0100 Subject: [PATCH] fix(derive): Add newline before `END` Add a newline before the final `END` in the derive macro. This avoids generating an ASN.1 module ending with for example `my1 ::= myThing1END`, --- rasn-compiler-derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rasn-compiler-derive/src/lib.rs b/rasn-compiler-derive/src/lib.rs index 5f89d7ed..0305c09d 100644 --- a/rasn-compiler-derive/src/lib.rs +++ b/rasn-compiler-derive/src/lib.rs @@ -8,7 +8,7 @@ const DUMMY_HEADER: &str = r#"asn1 { dummy(999) header(999) } DEFINITIONS AUTOMATIC TAGS::= BEGIN "#; -const DUMMY_FOOTER: &str = r#"END"#; +const DUMMY_FOOTER: &str = "\nEND"; struct MacroInput { asn: LitStr,