Re: refdbc -C addref & stdin

"Markus Hoenicka" <[email protected]>
Newsgroups gmane.text.refdb.devel
Message-ID <[email protected]>
Michael Smith writes:
 > I've been able to reproduce this error just by selecting/marking a
 > reference but not the blank line/newline that precedes it.
 > 
 > I saw a note in the docs that says all RIS files must begin with a
 > newline; seems like that's also true of any RIS data sent to refdbc.
 > 
 > Markus, would it be possible to make refdbc liberal in this regard -- to
 > process data for stdin even if it doesn't begin with a newline?
 > 
 > Perhaps it could just quietly and automatically add a newline to the
 > beginning of any data it receives. I know that would mean that if the
 > user had actually sent data that began with a newline, there'd be an
 > extra one. Would that break anything? If so, maybe refdbc could check to
 > see if there was a newline, and only add one if there isn't one already.
 > 

This indeed explains the behaviour. There is no problem with adding
newlines to the beginning of a file/buffer. Any excess newlines will
simply be skipped. I'll figure out a patch.

regards,
Markus

-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.