From b4bfbbbe6c66910f3a6677c67c0851b408e8df66 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Thu, 1 Jul 2010 09:56:57 +0200 Subject: [PATCH] solved bug reported by Thomas: windows newline is **\r\n"** and not the other way around!! --- bibtexbrowser.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index e4c7324..f896d8a 100755 --- a/bibtexbrowser.php +++ b/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);