]> git.sthu.org Git - shutils.git/commitdiff
bib2html.py: Print entry type
authorStefan Huber <shuber@sthu.org>
Thu, 3 Aug 2023 19:16:47 +0000 (21:16 +0200)
committerStefan Huber <shuber@sthu.org>
Thu, 3 Aug 2023 19:16:47 +0000 (21:16 +0200)
bib2html.py

index a595f420b9679ec6efb1107ed4af8ec182a0ab64..309b6c49c1dc48bf11dd2bd632d99a9c1b08d408 100755 (executable)
@@ -252,10 +252,8 @@ if __name__ == "__main__":
                 continue
 
             print("<div class=bibentry>")
-            print("<a class=bibentry_key id=" + key + ">[" + key + "]</a><br/>")
-
+            print("<a class=bibentry_key id={}>[{}]</a><br/><span class=bibentry_type>{}</span><br/>".format(key, key, entry.type))
             e = format_entry(entry)
             print(e)
 
             print("</div>\n")
-