aboutsummaryrefslogtreecommitdiff
path: root/bibtex.php
diff options
context:
space:
mode:
authorIgor <pashev.igor@gmail.com>2010-11-10 15:17:08 +0300
committerIgor <pashev.igor@gmail.com>2010-11-10 15:17:08 +0300
commitf1c473be59369e909ccc54a49fdfd8cfebc6be8a (patch)
treeb2312e9395b320424caef8b935d0ed427e44c7d4 /bibtex.php
parent67f72f1a617371b2ea1a235872315120ea1683f5 (diff)
downloaddokuwiki-plugin-papers-f1c473be59369e909ccc54a49fdfd8cfebc6be8a.tar.gz
Support for Translate plugin (automatically choose source for <papers> and <grants>)
Diffstat (limited to 'bibtex.php')
-rw-r--r--bibtex.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bibtex.php b/bibtex.php
index 7f36063..88904d4 100644
--- a/bibtex.php
+++ b/bibtex.php
@@ -57,7 +57,7 @@ class BibtexParser
$this->ENTRIES[$bibent]['id'] = strtolower($matches[2]);
// e. g. $ENTRIES['pashev_2010_axiom']['entry'] = 'book'
}
- elseif (preg_match('/(\w+?)\s*=\s*(.*?)\s*,?\s*$/u', $line, $matches))
+ elseif (preg_match('/^\s*(\w+?)\s*=\s*(.*?)\s*,?\s*$/u', $line, $matches))
{
$this->ENTRIES[$bibent][strtolower($matches[1])] = $matches[2];
/* e. g.