Skip to content

Commit

Permalink
Merge pull request #32 from es-av-it-pt/typescript_enumerated_descrip…
Browse files Browse the repository at this point in the history
…tions_fix

Typescript: Fix issue on enumerated comment descriptions
  • Loading branch information
6d7a authored Aug 23, 2024
2 parents 753eb34 + eb5b8e7 commit 7e9f6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rasn-compiler/src/generator/typescript/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
Expand Down

0 comments on commit 7e9f6ee

Please sign in to comment.