diff --git a/OpenBench/static/copy_text.js b/OpenBench/static/copy_text.js index a5d72afc..3c5e4a31 100644 --- a/OpenBench/static/copy_text.js +++ b/OpenBench/static/copy_text.js @@ -1,8 +1,10 @@ function copy_text(element_id, keep_url) { - var text = document.getElementById(element_id).innerHTML; + var text = "```\n"; + text += document.getElementById(element_id).innerHTML; text = text.replace(/
/g, "\n"); + text += "\n```"; if (keep_url) text += "\n" + window.location.href; diff --git a/OpenBench/templatetags/mytags.py b/OpenBench/templatetags/mytags.py index 8898b969..2eb0edf2 100644 --- a/OpenBench/templatetags/mytags.py +++ b/OpenBench/templatetags/mytags.py @@ -99,6 +99,7 @@ def longStatBlock(test): lower, elo, upper = OpenBench.stats.Elo(test.results()) lines = [ + 'Test | %s' % (prettyDevName(test)), 'Elo | %0.2f +- %0.2f (95%%)' % (elo, max(upper - elo, elo - lower)), '%-5s | %s Threads=%d Hash=%dMB' % (type_text, timecontrol, threads, hashmb), ]