commit 5b6c42b41274d9c4b8de9d2981a689aa6c2e7723
parent 3f92b053cb1a2000f2ab9abfdfb314b5a19f8a2c
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Mon, 14 Aug 2023 14:33:51 +0200
uml: make generated uml.gv easier to read
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/uml b/uml
@@ -12,7 +12,7 @@ function print_ft_name() {
function end_class() {
if( class != "" )
{
- printf( "}\"\n]\n\n" );
+ printf( "}\"\n]\n" );
}
class = "";
inside = "";
@@ -104,6 +104,7 @@ $1 == "link_font" {
$1 == "class" {
end_class();
+ printf( "\n\n" );
class = $2;
printf( "%s\n[\n\tshape=\"record\";\n\tlabel=\"{%s", class, class );
}
@@ -184,12 +185,12 @@ $1 == "friend" {
$1 == "package" {
end_class();
- printf( "subgraph cluster%s { label = \"%s\" ", $2, $2 );
+ printf( "\nsubgraph cluster%s\n{\nlabel = \"%s\" ", $2, $2 );
}
$1 == "endpackage" {
end_class();
- printf( "}" );
+ printf( "}\n" );
}
END {