On 5 May 2009, at 11:01 AM, Luc Bourhis wrote:

> Hi Adam,
>
> thanks for your time.
>
>>> 2) Bibdesk writes trailing white spaces which make my version  
>>> control system complain every single time:
>>>
>>> trunk/dox/cctbx_references.bib:5: trailing whitespace.
>>> +%% Created for Luc Bourhis at 2009-05-04 16:29:15 +0200  
>>> |||||||||||||||||||||||||||||||||
>>> trunk/dox/cctbx_references.bib:8: trailing whitespace.
>>> +%% Saved with string encoding Western (ISO Latin 1)  
>>> |||||||||||||||||||||||||||||||||||||
>>>
>>> (The ||||||||||||||| aren't in the file of course: I have added  
>>> them to show where the trailing blank is!)
>>
>> Offhand, I'm not sure why this would occur, since the only code  
>> appends a single space and double newline when writing that info.   
>> If you disable the preference to write a template file when saving,  
>> it won't be written at all.  My own .bib files are still in CVS,  
>> and I don't recall having this problem.
>
> CVS does not enforce any policy by default. On the contrary, my code  
> version system (git for info) is set up to refuse committing  
> anything with trailing white spaces. Actually, please read on…

Why on earth would you want to do that?

>>> I would think that (2) is trivial to fix.
>>
>> Time for you to fire up gdb :).  The code you're looking for is in  
>> BibDocument.m, line 1556.
>
> I have just checked out the trunk and fair enough, here is that line
>
>        [templateFile appendFormat:@"\n%%%% Created for %@ at %@ \n 
> \n", userName, [NSCalendarDate calendarDate]];
>
> You do see the white space after the last %@, don't you? That's the  
> culprit. It would be lovely if it could be eradicated.
>

Yes, that's what Adam said. And it's not a bug.

Christiaan

>
> Luc Bourhis
> Computer Scientist
> Chemical Crystallography Laboratory
> University of Durham, UK
>
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances!  
> Your
> production scanning environment may not be a perfect world - but  
> thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW  
> KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. 
> http://p.sf.net/sfu/kodak-com_______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to