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; };