georgboe/kindleclippings — Issue #3: Proplem when no Author 
Author: fboucheros
Created: 2011-10-12 19:46:18+00:00
State: open

I notice that if the author is empty, when getting Notes the gem cannot retrieve author but also Title.

Here a sample of MyClippings.txt
================================================================
The Danger of += in JavaScript
- Note Loc. 1 | Added on Monday, August 29, 2011, 08:47 AM

i need to see the code (not available offline)
==========
Static Code Analysis and Code Contracts
- Note Loc. 1 | Added on Monday, August 29, 2011, 09:06 AM

maybe a good alternative to resharper...
==========
================================================================

To fix this I edit the parser around line 40
before it was:

title, author = *first_line

and new way:

if first_line.nil?
title = lines[0]
author = ""
else
title, author = *first_line
end

I know that is not pretty but it works....