Browse Source

solved bug reported by Thomas: windows newline is **\r\n"** and not the other way around!!

replace/c24a8d1de403113542ba0936e844151de2785013
Martin Monperrus 15 years ago
parent
commit
b4bfbbbe6c
  1. 5
      bibtexbrowser.php

5
bibtexbrowser.php

@ -675,7 +675,10 @@ function xtrim($line) {
$line = trim($line);
// we remove the unneeded line breaks
// this is *required* to correctly split author lists into names
$line = str_replace("\n\r",' ', $line);//windows like
// 2010-06-30
// bug found by Thomas
// windows new line is **\r\n"** and not the other way around!!
$line = str_replace("\r\n",' ', $line);//windows like
$line = str_replace("\n",' ', $line);//unix-like
// we also replace tabs
$line = str_replace("\t",' ', $line);

Loading…
Cancel
Save