diff --git a/Source/Chatbook/Serialization.wl b/Source/Chatbook/Serialization.wl index d1d363a7..bd297ea6 100644 --- a/Source/Chatbook/Serialization.wl +++ b/Source/Chatbook/Serialization.wl @@ -866,6 +866,8 @@ truncateString[ str_String, max_Integer ] := truncateString[ str, Ceiling[ max / truncateString[ str_String, l_Integer, r_Integer ] /; StringLength @ str <= l + r + 5 := str; truncateString[ str_String, l_Integer, r_Integer ] := StringTake[ str, l ] <> " ... " <> StringTake[ str, -r ]; truncateString[ other_ ] := other; +truncateString[ other_, _Integer ] := other; +truncateString[ other_, _Integer, _Integer ] := other; (* ::**************************************************************************************************************:: *) (* ::Subsubsection::Closed:: *)