1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-04-19 19:56:50 +00:00

Inline additional information about subform mark

This commit is contained in:
Paul-Christian Volkmer 2023-09-03 13:58:28 +02:00
parent 4040c49521
commit 54cea88486

View File

@ -202,8 +202,7 @@ impl FormEntryContainer for Unterformular {
impl Listable for Unterformular {
fn to_listed_string(&self) -> String {
if self.hat_unterformulare {
return format!(
format!(
"Unterformular ({}) '{}' in Revision '{}' {}",
match self.is_system_library_content() {
true => style("S").yellow(),
@ -211,17 +210,11 @@ impl Listable for Unterformular {
},
style(&self.name).yellow(),
style(&self.revision).yellow(),
if self.hat_unterformulare {
style("Unterformular mit Markierung 'hat Unterformulare'!").red()
);
} else {
style("")
}
format!(
"Unterformular ({}) '{}' in Revision '{}'",
match self.is_system_library_content() {
true => style("S").yellow(),
_ => style("u"),
},
style(&self.name).yellow(),
style(&self.revision).yellow()
)
}
}