 			var nextChar:String = (length >= value.length) ? ' ' : value.charAt(length);
 			
 			if(last != ' ' && last != '>' && nextChar != ' ' && nextChar != '<')
+			{
 				result = result.substring(0, result.lastIndexOf(' ') + 1);
+			}
 			var lastStartTag:int = result.lastIndexOf('<');
 			
-			if(lastStartTag != -1) {
+			if(lastStartTag != -1)
+			{
 				var ch:String = result.charAt(lastStartTag + 1);
-				if(ch != '/') {
+				if(ch != '/') 
+				{
 					result = result.substring(0, lastStartTag);
 				}
 			}
 			
-			if(original.length == result.length)
-				return original;
-			
-			if(result.length == 0)
-				return result;
+			if(original.length == result.length) return original;
+			
+			if(result.length == 0) return result;
 			
 			// Remove any spaces and periods at the end
 			while(result.charAt(result.length - 1) == " " || result.charAt(result.length - 1) == ".")

			if (!ellipses) limit += 3;
			if (!moreLink) limit += 6;
			
			if(limit <= 0)
				return "";
			
			var original:String = value;
			

			
			var pattern:RegExp = new RegExp("(.*?)(\\s*\.\.\.\\s*)([\</[a-z]*?\>\\s*$]+)", "i");
			
			if(result.search(pattern) == -1 && ellipses) result += "...";
			
			if (moreLink)
			{
