--- loncom/interface/loncommon.pm 2019/08/25 02:42:56 1.1333
+++ loncom/interface/loncommon.pm 2020/02/05 21:48:05 1.1336
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1333 2019/08/25 02:42:56 raeburn Exp $
+# $Id: loncommon.pm,v 1.1336 2020/02/05 21:48:05 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3627,7 +3627,7 @@ sub check_passwd_rules {
$rulenames{'min'} = &mt('Minimum password length: [_1]',$min);
$rulenames{'max'} = &mt('Maximum password length: [_1]',$max);
$warning = &mt('Password did not satisfy the following:').'
';
- foreach my $rule ('min','max','uc','ls','num','spec') {
+ foreach my $rule ('min','max','uc','lc','num','spec') {
if (grep(/^$rule$/,@brokerule)) {
$warning .= '- '.$rulenames{$rule}.'
';
}
@@ -7258,7 +7258,8 @@ table.LC_prior_tries td {
padding: 6px;
}
-.LC_answer_unknown {
+.LC_answer_unknown,
+.LC_answer_warning {
background: orange;
color: black;
padding: 6px;
@@ -8254,6 +8255,14 @@ ul.LC_funclist li {
cursor:pointer;
}
+pre.LC_wordwrap {
+ white-space: pre-wrap;
+ white-space: -moz-pre-wrap;
+ white-space: -pre-wrap;
+ white-space: -o-pre-wrap;
+ word-wrap: break-word;
+}
+
/*
styles used for response display
*/
@@ -9010,8 +9019,7 @@ sub modal_link {
$target_attr = 'target="'.$target.'"';
}
return <<"ENDLINK";
-
- $linktext
+$linktext
ENDLINK
}