 </cfquery>
 
 <!--- Set up the necessary variables --->
+
+<!--- Data manipulation --->
+<cfif format is "Bird/Mammal">
+	<cfset sciName = #replace(scientific_name," ","&nbsp;","all")#>
+	<!--- complicated and stupid, but it should work.
+	The idea is to find all the spaces in the scientific name. Then find the 
+	one that is closest to the center of the string. Change that space to a
+	newline.
+	--Peter DeVore --->
+	<!--- Find the space locations --->
+	<cfset curLoc = 0>
+	<cfset spaceLocs = "">
+	<cfset replacedSpace = false>
+	<cfloop condition="temp lt #len(sciName)#">
+		<cfset curLoc = find(" ",sciName,curLoc)>
+		<cfset spaceLocs = ListAppend(spaceLocs,curLoc)>
+	</cfloop>
+	
+	<!--- Convert the space locations into distances from center --->
+	<cfset convertedSpaceLocs = "">
+	<cfloop list="spaceLocs" index="loc">
+		<cfset convertedSpaceLocs = abs(loc - (len(sciName)/2))>
+	</cfloop>
+	
+	<!--- Sort those distances --->
+	<cfset convertedSpaceLocs = ListSort(convertedSpaceLocs,"numeric")>
+	
+	<!--- Try inserting newline if the closest space is after the center --->
+	<cfset position = (len(sciName)/2)) + ListFirst(convertedSpaceLocs)>
+	<cfif find(" ", sciName, position) = position and not replacedSpace>
+		<cfset sciName = insert("<br>", sciName, position)>
+		<cfset replaceSpace = true>
+	</cfif>
+	
+	<!--- Try inserting newline if the closest space is before the center --->
+	<cfset position = (len(sciName)/2)) - ListFirst(convertedSpaceLocs)>
+	<cfif find(" ", sciName, position) = position and not replacedSpace>
+		<cfset sciName = insert("<br>", sciName, position)>
+		<cfset replaceSpace = true>
+	</cfif>
+</cfif>
+<cfif format is "Herp">
+	<cfset sciName = #replace(scientific_name," ","&nbsp;","all")#>
+</cfif>
+
+
 <!--- Layout parameters --->
 <cfset maxCol = 2>
 <cfif format is "Bird/Mammal">

<cfset maxPage = (getItems.recordcount-1) \ numRecordsPerPage + 1>
<cfset curPage = 1>
<cfset curRecord = 1>
<!--- Formatting parameters --->
<cfset labelWidth = 'width: 368px;'>
<cfset labelBorder = 'border: 1px solid black;'>

one line slips, then its going to take that much room and that's that.
--Peter DeVore--->
		<td>
			<div class="#textClass#"><i>#sciName#</i></span>	
		</td>
		<td>
			<span class="#textClass#">#getItems.loan_number#</span>
		</td>
		<td>
		<!--- mmm is Aug, while mmmm is August (diff formats)--->
