--- deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/07 05:54:09 1.26 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2006/06/07 07:00:30 1.27 @@ -400,8 +400,11 @@ sub spell_add { my ($self, $spell) = @_; - # TODO - # create a widget dynamically, using spell face (CF::Protocol downloads them) + # try to create single paragraphs of multiple lines sent by the server + $spell->{message} =~ s/(?<=\S)\n(?=\w)/ /g; + $spell->{message} =~ s/\n+$//; + $spell->{message} ||= "Server did not provide a description for this spell."; + $::SETUP_SPELLS->add_spell ($spell); $self->{map_widget}->add_command ("invoke $spell->{name}", CFClient::UI::Label::escape $spell->{message});