0

comments are shown when expanding bibtex code

Prof Chaos 2 weeks ago 0

Hey there!

Not sure whether that's an idea or a bug, I guess it's in the middle of both, maybe an "issue", i.e., something to "optimize"?

Anyway, assume you have a bibtex file that uses "comments" between the bibtex entries, maybe one line before each entry to explain what it is/shows. Note that bibtex doesn't formally have a designated comment symbol; as far as I am aware everything will simply be ignored that's outside of a bibtex entry. But since it looks odd to simply write some text somewhere into the file, I usually place a "%" or ";;" in the beginning of said line. Note that this is only *outside* of bibtex entries.

Now, what happens if one does this with files that are displayed using your (amazing! :)) service?

All the information is displayed correctly, so it does not lead to any errors. *However*, when dispaying the bibtex code on an individual item, it will not just show its bibtex code, but also all comments in the file until the next bibtex entry starts. Here a screenshot to illustrate:

Image 189

In this example, showing "% submission 1" makes sense because no bibtex follows for it (so that comment should maybe not even have been included as the respective paper entry doesn't exist. The next comment, "% submission 2" is the "headline" above the respective next bibtex entry that's (correctly) not shown.


Instead, simply no "comments" should be shown at all, or in other words: the rule what to show should be changed to stop after the current entry has been displayed.


For reference, the following might be useful for debugging:
- File this is taken from: https://icaps24.icaps-conference.org/program/workshops/hplan/hplan.bib
- Webpage where it is displayed: https://icaps24.icaps-conference.org/program/workshops/hplan/ (note that multiple bibtex files are shown on that page, but that should not influence this behavior)
https://bibbase.userecho.com/communities/1/topics/502-comments-are-shown-when-expanding-bibtex-code
bibbase.userecho.com
CC-MAIN-2024-33
39579
application/http; msgtype=response
sha1:FGDPUNHVUUSSIHGDNSY5KZVTGU2UXOCI
<urn:uuid:87ad5fe7-1963-46b6-b365-87adbaf4d153>
2024-08-12T09:39:38Z
147.135.70.55
text/html
sha1:ZC7DJXFUTKZRLG3LD45UDTRSXKEECA4P
<urn:uuid:fca0514f-9dab-4be3-a2bb-b57810d5ce58>
https://bibbase.userecho.com/communities/1/topics/502-comments-are-shown-when-expanding-bibtex-code
response
<urn:uuid:421ecc43-fea0-4eae-b045-10dbfb325784>
isPartOf: CC-MAIN-2024-33
publisher: Common Crawl
description: Wide crawl of the web for August 2024
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-116
software: Apache Nutch 1.20 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/