BibTeX file generated for bibliography in researchr starts with:

downloadBibliographyBibtexBibliographyBool downloadBibliographyBibtex">@inproceedings{KiczalesLMMLLI97,
  title = {Aspect-Oriented Programming},

The page is generated by

define downloadBibliographyBibtex(bib : Bibliography, compact : Bool) {
  mimetype("text/plain")
  bibtexListText(bib.publications, compact)
}

It seems that the cause of the problem is the scope of the if in the following generated code:

protected void tryWriteSpanOpen(PrintWriter outtemp)
{ 
  if(ThreadLocalPage.get().templateSpans())
    outtemp.write("<span id=\"" + "downloadBibliographyBibtexBibliographyBool" + "\" class=\"scopediv ");
  if("downloadBibliographyBibtexBibliographyBool".equals("downloadBibliographyBibtex"))
  { 
    outtemp.write("downloadBibliographyBibtexBibliographyBool");
  }
  else
  { 
    outtemp.write("downloadBibliographyBibtexBibliographyBool" + " " + "downloadBibliographyBibtex");
  }
  outtemp.write("\">");
}
Submitted by Eelco Visser on 20 March 2010 at 22:18

On 20 March 2010 at 22:33 Eelco Visser commented:

The problem is solved by adding a no-span

define no-span downloadBibliographyBibtex(bib : Bibliography, compact : Bool) {
  mimetype("text/plain")
  output(navigate(downloadbibtex("bibliography",bib.name,""))) "\n"
  bibtexListText(bib.publications, compact)
}

However, it seems that the template name should not be printed if mimetype is set.


On 22 March 2010 at 12:19 Danny Groenewegen commented:

fixed in revision 3768

Log in to post comments