Subject: | line wrap required on output to avoid "Sorry---you've exceeded BibTeX's buffer size 5000" |
When writing to a file opened with Text::BibTeX::File ">filename.bib", it should be possible to enforce line wrapping for long fields (e.g. the abstract) so that BibTeX can process the file without failing with "Sorry---you've exceeded BibTeX's buffer size 5000".
I tried to insert line breaks manually:
if(length($k)>4000)
{
$Text::Wrap::columns = 4000;
$k = join("\n",wrap("","",$k));
}
$entry->set('abstract',$k);
but the line wrapping added does not make it to the file written.