summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-07-31 17:33:11 (GMT)
committerGitHub <noreply@github.com>2020-07-31 17:33:11 (GMT)
commita0a7ed0c244dbfd88b24a32410681f7a90e0f9db (patch)
tree6be63781f4f97f0e0ab792d930210aae1150285d /templates
parentd56e225889003904344d6b4e9ae4ff2338733539 (diff)
parent44c1f04b2bc28fbeb14b6d4e17fda0cd029b6890 (diff)
downloadDoxygen-a0a7ed0c244dbfd88b24a32410681f7a90e0f9db.zip
Doxygen-a0a7ed0c244dbfd88b24a32410681f7a90e0f9db.tar.gz
Doxygen-a0a7ed0c244dbfd88b24a32410681f7a90e0f9db.tar.bz2
Merge pull request #7936 from albert-github/feature/bug_cite_debug
Debug facility for the \cite command
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/html/bib2xhtml.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/html/bib2xhtml.pl b/templates/html/bib2xhtml.pl
index ca40b5f..539aaab 100755
--- a/templates/html/bib2xhtml.pl
+++ b/templates/html/bib2xhtml.pl
@@ -118,11 +118,14 @@ sub html_ent {
s/\\lfloor\b/&lfloor;/g;
s/\\rfloor\b/&rfloor;/g;
}
+$bdebug = 0;
foreach (@ARGV) {
if (/\.bib$/) {
$bibfile = $_;
$bibfile =~ s/\.bib$//;
push(@bibfiles,$bibfile);
+ } elsif ("$_" eq "-d") {
+ $bdebug = 1;
} else {
$htmlfile = $_;
}
@@ -315,5 +318,7 @@ close (OHTMLFILE);
close(HTMLFILE);
chmod($mode, "$htmlfile$$");
rename("$htmlfile$$", $htmlfile);
-unlink(@tmpfiles);
+if ($bdebug == 0) {
+ unlink(@tmpfiles);
+}
exit(0);