Blame doxygen-1.8.10-bibtex.patch

Than Ngo 5e50ad
diff --git a/src/commentscan.l b/src/commentscan.l
Than Ngo 5e50ad
index 3546277..406d966 100644
Than Ngo 5e50ad
--- a/src/commentscan.l
Than Ngo 5e50ad
+++ b/src/commentscan.l
Than Ngo 5e50ad
@@ -920,7 +920,7 @@ FILEECHAR [a-z_A-Z0-9\x80-\xFF\-\+@&#]
Than Ngo 5e50ad
 FILE      ({FILESCHAR}*{FILEECHAR}+("."{FILESCHAR}*{FILEECHAR}+)*)|("\""[^\n\"]*"\"")
Than Ngo 5e50ad
 ID        "$"?[a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF]*
Than Ngo 5e50ad
 LABELID   [a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF\-]*
Than Ngo 5e50ad
-CITESCHAR [a-z_A-Z\x80-\xFF]
Than Ngo 5e50ad
+CITESCHAR [a-z_A-Z0-9\x80-\xFF]
Than Ngo 5e50ad
 CITEECHAR [a-z_A-Z0-9\x80-\xFF\-\+:\/]*
Than Ngo 5e50ad
 CITEID    {CITESCHAR}{CITEECHAR}*("."{CITESCHAR}{CITEECHAR}*)*
Than Ngo 5e50ad
 SCOPEID   {ID}({ID}*{BN}*"::"{BN}*)*({ID}?)
Than Ngo 5e50ad
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
Than Ngo 5e50ad
index 31d583c..efc058a 100644
Than Ngo 5e50ad
--- a/src/doctokenizer.l
Than Ngo 5e50ad
+++ b/src/doctokenizer.l
Than Ngo 5e50ad
@@ -334,7 +334,7 @@ BLANK     [ \t\r]
Than Ngo 5e50ad
 ID        "$"?[a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF]*
Than Ngo 5e50ad
 LABELID   [a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF\-]*
Than Ngo 5e50ad
 PHPTYPE   [\\:a-z_A-Z0-9\x80-\xFF\-]+
Than Ngo 5e50ad
-CITESCHAR [a-z_A-Z\x80-\xFF]
Than Ngo 5e50ad
+CITESCHAR [a-z_A-Z0-9\x80-\xFF]
Than Ngo 5e50ad
 CITEECHAR [a-z_A-Z0-9\x80-\xFF\-\+:\/]*
Than Ngo 5e50ad
 CITEID    {CITESCHAR}{CITEECHAR}*("."{CITESCHAR}{CITEECHAR}*)*
Than Ngo 5e50ad
 MAILADR   ("mailto:")?[a-z_A-Z0-9.+-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z_A-Z0-9\-]+
Than Ngo 5e50ad
diff --git a/src/cite.cpp b/src/cite.cpp
Than Ngo 5e50ad
index 2ea6300..3125f35 100644
Than Ngo 5e50ad
--- a/src/cite.cpp
Than Ngo 5e50ad
+++ b/src/cite.cpp
Than Ngo 5e50ad
@@ -226,13 +226,13 @@ void CiteDict::generatePage() const
Than Ngo 5e50ad
     else if (insideBib) doc+=line+"\n";
Than Ngo 5e50ad
     int i;
Than Ngo 5e50ad
     // determine text to use at the location of the @cite command
Than Ngo 5e50ad
-    if (insideBib && (i=line.find("
Than Ngo 5e50ad
+    if (insideBib && (i=line.find("name=\"CITEREF_"))!=-1)
Than Ngo 5e50ad
     {
Than Ngo 5e50ad
       int j=line.find("\">[");
Than Ngo 5e50ad
       int k=line.find("]");
Than Ngo 5e50ad
       if (j!=-1 && k!=-1)
Than Ngo 5e50ad
       {
Than Ngo 5e50ad
-        QCString label = line.mid(i+17,j-i-17);
Than Ngo 5e50ad
+        QCString label = line.mid(i+14,j-i-14);
Than Ngo 5e50ad
         QCString number = line.mid(j+2,k-j-1);
Than Ngo 5e50ad
         CiteInfo *ci = m_entries.find(label);
Than Ngo 5e50ad
         //printf("label='%s' number='%s' => %p\n",label.data(),number.data(),ci);