Fixed link generation for template specializations

This commit is contained in:
Bartek Kryza
2023-12-10 11:54:52 +01:00
parent 85ffe2cdee
commit cea427e32d
12 changed files with 59 additions and 35 deletions

View File

@@ -302,16 +302,18 @@ void generator::generate_message_comment(
if (comment_generated_from_note_decorators)
return;
if (!config().generate_message_comments() || !m.comment())
if (!config().generate_message_comments())
return;
ostr << "note over " << generate_alias(from.value()) << '\n';
if (const auto &comment = m.comment(); comment) {
ostr << "note over " << generate_alias(from.value()) << '\n';
ostr << util::format_message_comment(
m.comment().value(), config().message_comment_width())
<< '\n';
ostr << util::format_message_comment(
comment.value(), config().message_comment_width())
<< '\n';
ostr << "end note" << '\n';
ostr << "end note" << '\n';
}
}
void generator::generate_participant(

View File

@@ -449,7 +449,7 @@ void diagram::print() const
from_participant.full_name(false), from_participant.id(),
to_participant.full_name(false), to_participant.id(),
message.message_name(), to_string(message.type()),
message.comment() ? message.comment().value() : "None");
message.comment().value_or("None"));
}
}
}