From eb5b8e7a42806cc09dc05da044e0052ec26a5f5b Mon Sep 17 00:00:00 2001 From: dmtar Date: Thu, 22 Aug 2024 15:20:25 +0100 Subject: [PATCH] typescript: fix enumerated comment descriptions --- rasn-compiler/src/generator/typescript/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rasn-compiler/src/generator/typescript/builder.rs b/rasn-compiler/src/generator/typescript/builder.rs index 624957f..839a621 100644 --- a/rasn-compiler/src/generator/typescript/builder.rs +++ b/rasn-compiler/src/generator/typescript/builder.rs @@ -166,11 +166,11 @@ impl Typescript { .into_iter() .fold(String::new(), |mut acc, en| { acc.push_str(&format!( - r#"{}{} = "{}", + r#"{} = "{}", {} "#, - en.description.map_or(String::default(), |d| d + "\n"), to_jer_identifier(&en.name), en.name, + en.description.map_or(String::default(), |d| format!("//{}", d)), )); acc }),