From ce045ca0f3532c6527a0ed6f37d7dbca39f23760 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sat, 31 Jul 2021 20:59:33 +0200 Subject: [PATCH] Fixed formatting --- src/puml/class_diagram_generator.h | 4 ++-- tests/t00031/t00031.cc | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/puml/class_diagram_generator.h b/src/puml/class_diagram_generator.h index 849f6ce0..0b153195 100644 --- a/src/puml/class_diagram_generator.h +++ b/src/puml/class_diagram_generator.h @@ -151,7 +151,7 @@ public: ostr << class_type << " " << c.alias(); - if(!c.style.empty()) + if (!c.style.empty()) ostr << " " << c.style; ostr << " {" << '\n'; @@ -317,7 +317,7 @@ public: { ostr << "enum " << e.alias(); - if(!e.style.empty()) + if (!e.style.empty()) ostr << " " << e.style; ostr << " {" << '\n'; diff --git a/tests/t00031/t00031.cc b/tests/t00031/t00031.cc index e01ff4b9..9e3d1cc0 100644 --- a/tests/t00031/t00031.cc +++ b/tests/t00031/t00031.cc @@ -9,14 +9,10 @@ class A { }; /// @uml{style[#line.dotted:blue]} -enum B { - one, - two, - three -}; +enum B { one, two, three }; /// @uml{style[#pink;line:red;line.bold;text:red]} -template class C { +template class C { T ttt; };