<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 
-local lib, oldminor = LibStub:NewLibrary(&quot;tektip-1.0&quot;, 2)
+local lib, oldminor = LibStub:NewLibrary(&quot;tektip-1.0&quot;, 3)
 if not lib then return end
 oldminor = oldminor or 0
 
@@ -93,19 +93,24 @@ if oldminor &lt; 1 then
 			end
 		end
 	end
+end
 
 
-	function lib:AddLine(text, r, g, b)
+if oldminor &lt; 3 then
+	function lib:AddLine(text, r, g, b, wrap)
 		self.numlines = self.numlines + 1
 		local fs = self.cols[1][self.numlines]
 		fs:SetTextColor(r or NORMAL_FONT_COLOR.r, g or NORMAL_FONT_COLOR.g, b or NORMAL_FONT_COLOR.b)
 		fs:SetText(text)
 		fs:SetPoint(&quot;RIGHT&quot;, self.cols[#self.cols].header, &quot;RIGHT&quot;)
+		fs.wrapped = wrap
 		for i=2,#self.cols do self.cols[i][self.numlines]:SetText(nil) end
 		fs:Show()
 	end
+end
 
 
+if oldminor &lt; 1 then
 	function lib:AddMultiLine(...)
 		self.numlines = self.numlines + 1
 		local numdots = select(&quot;#&quot;, ...)
@@ -122,27 +127,37 @@ if oldminor &lt; 1 then
 	end
 end
 
-if oldminor &lt; 2 then
+
+if oldminor &lt; 3 then
 	function lib:OnShow()
-		local h, w, totalw = 0, 0, 0
+		local w, totalw = 0, 0
 		for i=1,#self.cols do
 			local colw = 1
 			for j=1,self.numlines do
 				local fs = self.cols[i][j]
-				if i == 1 then h = h + fs:GetHeight() end
 				if i ~= 1 or self.cols[2][j]:GetText() then colw = math.max(colw, fs:GetStringWidth())
-				else totalw = math.max(totalw, fs:GetStringWidth()) end
+				elseif not fs.wrapped then totalw = math.max(totalw, fs:GetStringWidth()) end
 			end
 			self.cols[i].header:SetWidth(colw)
 			w = w + colw
 		end
-		self:SetHeight(h + TOOLTIP_PADDING*2 + (self.numlines-1)*VGAP)
+
 		if w &lt; (totalw - (#self.cols-1)*HGAP) then
-			self:SetWidth(totalw + TOOLTIP_PADDING*2)
 			local extra = totalw - w - (#self.cols-1)*HGAP
 			for i=1,#self.cols do self.cols[i].header:SetWidth(extra/#self.cols + self.cols[i].header:GetWidth()) end
+			w = totalw
 		else
-			self:SetWidth(w + (#self.cols-1)*HGAP + TOOLTIP_PADDING*2)
+			w = w + (#self.cols-1)*HGAP
+		end
+		self:SetWidth(w + TOOLTIP_PADDING*2)
+
+		local h = 0
+		for i=1,self.numlines do
+			local fs = self.cols[1][i]
+			fs:SetWidth(fs.wrapped and w or 0)
+			h = h + fs:GetHeight()
 		end
+
+		self:SetHeight(h + TOOLTIP_PADDING*2 + (self.numlines-1)*VGAP)
 	end
 end</diff>
      <filename>tektip.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f64eb3a9d8796269441d83664aa68d4562dbd4f3</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/picofriends/commit/f501aeebb83a33b46037e881072255a2bdee75a1</url>
  <id>f501aeebb83a33b46037e881072255a2bdee75a1</id>
  <committed-date>2008-11-17T22:16:45-08:00</committed-date>
  <authored-date>2008-11-17T22:16:45-08:00</authored-date>
  <message>Embed update</message>
  <tree>56313fb4863b17e2e324f389194165d8be63e3fe</tree>
  <committer>
    <name>Tekkub</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
