Skip to content

Commit

Permalink
XHTML validation fix.
Browse files Browse the repository at this point in the history
replace deprecated <nobr> element


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@4425 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
giallu committed Jul 11, 2007
1 parent 6ea81ff commit 2f9ef43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/string_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: string_api.php,v 1.89 2007-07-06 21:15:17 giallu Exp $
# $Id: string_api.php,v 1.90 2007-07-11 21:53:49 giallu Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -50,7 +50,7 @@ function string_preserve_spaces_at_bol( $p_string ) {
# Prepare a string to be printed without being broken into multiple lines
function string_no_break( $p_string ) {
if ( strpos( $p_string, ' ' ) !== false ) {
return "<nobr>$p_string</nobr>";
return '<span class="nowrap">' . $p_string . "</span>";
} else {
return $p_string;
}
Expand Down
5 changes: 5 additions & 0 deletions css/default.css
Expand Up @@ -107,5 +107,10 @@ div.quick-summary-right { width: 49%; padding: 2px; text-align: right; float: ri
.strike { text-decoration: line-through; }
.strike-small { text-decoration: line-through; font-size: 8pt; }

.nowrap
{
white-space: nowrap;
}

.progress400 { position: relative; width: 400px; border: 1px solid #d7d7d7; margin-top: 1em; margin-bottom: 1em; padding: 1px; }
.progress400 .bar { display: block; position: relative; background: #6bba70; text-align: center; font-weight: normal; color: #333; height: 2em; line-height: 2em; }

0 comments on commit 2f9ef43

Please sign in to comment.