Browse Source

Removed special case for tuples passed to truncatewords/2.

Rune Juhl Jacobsen 12 years ago
parent
commit
31788d1ff1
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/erlydtl_filters.erl

+ 0 - 3
src/erlydtl_filters.erl

@@ -808,9 +808,6 @@ truncatechars(Input, Max) ->
     truncatechars(Input, Max, []).
 
 %% @doc Truncates a string after a certain number of words.
-%% Do not truncate tuples, e.g. a timestamp ({{Y,M,D},{H,Mm,S}}). 
-truncatewords(Input, _) when is_tuple(Input) ->
-    Input;
 truncatewords(_Input, Max) when Max =< 0 ->
     "";
 truncatewords(Input, Max) when is_binary(Input) ->