Browse Source

tiny change in the parser

replace/c24a8d1de403113542ba0936e844151de2785013
Martin Monperrus 15 years ago
parent
commit
9cdbb3689c
  1. 4
      bibtexbrowser.php

4
bibtexbrowser.php

@ -443,8 +443,8 @@ $isinentry = false;
$delegate->beginFile(); $delegate->beginFile();
$handle = fopen($bibfilename, "r"); $handle = fopen($bibfilename, "r");
if (!$handle) die ('cannot open '.$bibfilename);
// if you encounter this error "Allowed memory size of xxxxx bytes exhausted" // if you encounter this error "Allowed memory size of xxxxx bytes exhausted"
// then decrease the size of the temp buffer below // then decrease the size of the temp buffer below
$bufsize=BUFFERSIZE; $bufsize=BUFFERSIZE;
@ -519,7 +519,7 @@ for ( $i=0; $i < strlen( $sread ); $i++) { $s=$sread[$i];
$isinentry = false;$delegate->endEntry($entrysource); $isinentry = false;$delegate->endEntry($entrysource);
$entryvalue=''; // resetting the value buffer $entryvalue=''; // resetting the value buffer
} }
else if ($s==' ' || $s=="\t" || $s=="\n" ) {
else if ($s==' ' || $s=="\t" || $s=="\n" || $s=="\r" ) {
// blank characters are not taken into account when values are not in quotes or curly brackets // blank characters are not taken into account when values are not in quotes or curly brackets
} }
else { $entryvalue=$entryvalue.$s;} else { $entryvalue=$entryvalue.$s;}

Loading…
Cancel
Save