diff options
author | albert-github <albert.tests@gmail.com> | 2020-07-31 10:12:25 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-07-31 10:12:25 (GMT) |
commit | e530248a0c4b1fc310d9f269c402f0703096b2f0 (patch) | |
tree | e905fc373310dd50f2c1442429bf06749a1bbfbf | |
parent | f94a2f3a895f2601226845d16093546757a540e6 (diff) | |
download | Doxygen-e530248a0c4b1fc310d9f269c402f0703096b2f0.zip Doxygen-e530248a0c4b1fc310d9f269c402f0703096b2f0.tar.gz Doxygen-e530248a0c4b1fc310d9f269c402f0703096b2f0.tar.bz2 |
Incorrect representation of citation
In case we have a bibtex entry like:
```
@manual{ cgal:as-lum
,author = {Algorithmic Solutions}
,title = {The {LEDA} {U}ser {M}anual}
,organization = {Algorithmic Solutions}
,address = {66123 Saarbr\"ucken, Germany}
,url = {http://www.algorithmic-solutions.info/leda_manual/MANUAL.html}
}
```
this is rendered / referenced like:
```
[Solutions] Algorithmic Solutions. The LEDA User Manual. Algorithmic Solutions, 66123 Saarbrücken, Germany.
```
instead of
```
[2] Algorithmic Solutions. The LEDA User Manual. Algorithmic Solutions, 66123 Saarbrücken, Germany.
```
The problem is that in the resulting "bbl" file from the bibtex command we have the line:
```
<dt><a
name="CITEREF_cgal:as-lum">[Solutions]</a></dt><dd>\bibxhtmlname{Algorithmic
Solutions}.
```
instead of (from another entry):
```
<dt><a name="CITEREF_cgal:mog-vbcfe-11">[Merigot et~al.,
2011]</a></dt><dd>\bibxhtmlname{Quentin Merigot}, \bibxhtmlname{Maks
```
Note the `\n` after the `<a` instead of the (expected) space.
This has been corrected in the regular expression (Note: we need to use `[ \n][ \n]*` as we cannot use the equivalent `[ \n]+` as the `+`- sign has here a different meaning).
-rwxr-xr-x | templates/html/bib2xhtml.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/html/bib2xhtml.pl b/templates/html/bib2xhtml.pl index da6dc62..8d2b9b2 100755 --- a/templates/html/bib2xhtml.pl +++ b/templates/html/bib2xhtml.pl @@ -198,7 +198,7 @@ while (<BBLFILE>) { next loop; } $nentry++; - ($bcite, $blabel) = m+<dt><a name=\"([^\"]*)\">\[([^\]]*)\]</a></dt><dd>+; + ($bcite, $blabel) = m+<dt><a[ \n][ \n]*name=\"([^\"]*)\">\[([^\]]*)\]</a></dt><dd>+; $blabel = "$nentry"; $bibcite{$bcite} = $blabel; } @@ -222,7 +222,7 @@ while (<BBLFILE>) { } s/\%\n//g; s/(\.(<\/cite>|<\/a>|\')+)\./$1/g; - s:(<dt><a name=\"[^\"]*\">\[)[^\]]*(\]</a></dt><dd>):$1$nentry$2:; + s:(<dt><a[ \n][ \n]*name=\"[^\"]*\">\[)[^\]]*(\]</a></dt><dd>):$1$nentry$2:; while (m/(\\(cite(label)?)(\001\d+)\{([^\001]+)\4\})/) { $old = $1; $cmd = $2; |