Fixed link generation for template specializations
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user