From 8a4ba7c5d44ce5970300eb5052cbbf383417f958 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 10 Mar 2011 17:02:02 +0100 Subject: TransAdmin: Fixed minor bug with displaying multi-line English strings --- lib/VNDB/Plugin/TransAdmin.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/VNDB/Plugin/TransAdmin.pm b/lib/VNDB/Plugin/TransAdmin.pm index 19ce336e..5f3dd1bf 100644 --- a/lib/VNDB/Plugin/TransAdmin.pm +++ b/lib/VNDB/Plugin/TransAdmin.pm @@ -16,7 +16,7 @@ package VNDB::Plugin::TransAdmin; use strict; use warnings; -use TUWF ':html', 'uri_escape'; +use TUWF ':html', 'uri_escape', 'html_escape'; use LangFile; use VNDB::Func; @@ -216,7 +216,9 @@ sub _section { my(undef, $key, $en, $sync, $tl) = @$l; b class => $sync ? 'grayedout' : 'standout', ":$key"; br; - div style => 'margin-left: 25px; font: 12px Tahoma; width: 700px; overflow-x: auto; white-space: nowrap', $en; + div style => 'margin-left: 25px; font: 12px Tahoma; width: 700px; overflow-x: auto; white-space: nowrap'; + lit html_escape $en; + end; my $multi = $en =~ y/\n//; div style => 'width: 23px; float: left; text-align: right'; -- cgit v1.2.3