[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 18 Mar 2008 23:31:31 -0000
raeburn Tue Mar 18 19:31:31 2008 EDT
Modified files:
/loncom/publisher lonpublisher.pm
Log:
- Style.
- Eliminate unhandy &mt() call which included implicit linefeed.
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.231 loncom/publisher/lonpublisher.pm:1.232
--- loncom/publisher/lonpublisher.pm:1.231 Thu Feb 14 16:29:08 2008
+++ loncom/publisher/lonpublisher.pm Tue Mar 18 19:31:31 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Publication Handler
#
-# $Id: lonpublisher.pm,v 1.231 2008/02/14 21:29:08 www Exp $
+# $Id: lonpublisher.pm,v 1.232 2008/03/18 23:31:31 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -964,14 +964,13 @@
$scrout.='<h3>'.&mt('Dependencies').'</h3>';
my $allowstr='';
- foreach (sort(keys(%allow))) {
- my $thisdep=$_;
+ foreach my $thisdep (sort(keys(%allow))) {
if ($thisdep !~ /[^\s]/) { next; }
if ($thisdep =~/\$/) {
- $scrout.='<br /><span class="LC_warning">'.
- &mt('The resource depends on another resource with variable filename, i.e., [_1]. '.
- 'You likely need to explicitly allow access to all possible dependencies using the [_2]-tag',
- '<tt>'.$thisdep.'</tt>','<tt><allow></tt>').'</span>';
+ $scrout.='<br /><span class="LC_warning">'
+ .&mt('The resource depends on another resource with variable filename, i.e., [_1].','<tt>'.$thisdep.'</tt>').'<br />'
+ .&mt('You likely need to explicitly allow access to all possible dependencies using the [_1]-tag.','<tt><allow></tt>')
+ .'</span><br />';
}
unless ($style eq 'rat') {
$allowstr.="\n".'<allow src="'.$thisdep.'" />';