Re: [Refdb-devel] refdbc -C addref & stdin
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mar...@mh...> - 2003-12-15 21:53:11
|
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 mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |