(Temporarily) fixed a bug with a book that ends in a square bracket. I will need to employ a better solution later on.

Jayden Platell [06-24-14 - 10:44]
(Temporarily) fixed a bug with a book that ends in a square bracket.  I will need to employ a better solution later on.
Filename
Librarian.lua
diff --git a/Librarian.lua b/Librarian.lua
index b6f3ea1..9f9e994 100644
--- a/Librarian.lua
+++ b/Librarian.lua
@@ -241,6 +241,9 @@ function Librarian:ImportFromLoreLibrary()
             if not hidden then
             	for bookIndex = 1, totalBooks do
             		local title, icon, known = GetLoreBookInfo(categoryIndex, collectionIndex, bookIndex)
+            		if string.sub(book.title, -1) == "]" then
+						book.title = book.title .. " "
+					end
             		if known then
             			if not self:FindCharacterBook(title) then
             				local body, medium, showTitle = ReadLoreBook(categoryIndex, collectionIndex, bookIndex)
@@ -354,7 +357,15 @@ function Librarian:FindBook(title)
 end

 function Librarian:AddBook(book)
+	if string.sub(book.title, -1) == "]" then
+		book.title = book.title .. " "
+	end
+
 	if not self:FindCharacterBook(book.title) then
+		if string.sub(book.body, -1) == "]" then
+			book.body = book.body .. " "
+		end
+
 		if not self:FindBook(book.title) then
 			book.timeStamp = GetTimeStamp()
 			book.unread = true