--- loncom/interface/lonmenu.pm 2003/09/17 18:47:15 1.90
+++ loncom/interface/lonmenu.pm 2003/09/25 17:52:26 1.95
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.90 2003/09/17 18:47:15 matthew Exp $
+# $Id: lonmenu.pm,v 1.95 2003/09/25 17:52:26 bowersj2 Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -641,21 +641,34 @@ sub switch {
if ($nobreak==2) { return ''; }
my $text=$top.' '.$bot;
$text=~s/\s*\-\s*//gs;
- $inlineremote[10*$row+$col]="\n".($nobreak?' ':'
').
- ''.$text.' '.
- ($nobreak?'':$desc);
+ if ($nobreak) {
+ $inlineremote[10*$row+$col]=
+ ''.$text.'';
+ } else {
+ $inlineremote[10*$row+$col]="\n
".
+ ''.$desc.'';
+ }
} else {
# Inline Remote
if ($nobreak==2) { return ''; }
my $text=$top.' '.$bot;
$text=~s/\s*\-\s*//gs;
- $inlineremote[10*$row+$col]="\n".
- ($nobreak==3?'