Skip to content

Commit

Permalink
More word-breaking and different. Thought the last version would work
Browse files Browse the repository at this point in the history
with Opera but apparently not.  This version might.
  • Loading branch information
jamiemccarthy committed Jul 15, 2002
1 parent 57045b1 commit d2203f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Slash/Utility/Data/Data.pm
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,9 @@ sub breakHtml {
| \S # or an ordinary char
)
){$mwl} # $mwl non-HTML-tag chars in a row
)}{$1<nobr> <wbr></nobr>}gsx;
)}{
substr($1, 0, -1) . "<nobr>" . substr($1, -1) . "<wbr></nobr> "
}gsex;

# Just to be tidy, if we appended that word break at the very end
# of the text, eliminate it.
Expand Down

0 comments on commit d2203f5

Please sign in to comment.