commit 50b6e2b853641f2523a175298f865fc44f44d8a7 from: Omar Polo date: Tue Jan 30 11:06:55 2024 UTC gotwebd: try to improve copy-paste from BLOB pages This moves the space inside the line anchor and makes it non-selectable, so that when copy-pasting, only the content of line lines is actually copied. At the moment, this seems to behave slightly incorrectly in firefox which inserts a double line break due to the presence of unselectable elements inside the selection. Hopefully it will be fixed, chromium behaves fine. It also still works decently on text-browsers. ok stsp@ commit - 26b163a03e920e099a9aeefaeb6e99d0e0a8baf9 commit + 50b6e2b853641f2523a175298f865fc44f44d8a7 blob - 4770d8445e2767df524c46300a92d897797192ea blob + c7d9ee04d1db7bdde6bdef6b6a7234d71ebfd35d --- gotwebd/files/htdocs/gotwebd/gotweb.css +++ gotwebd/files/htdocs/gotwebd/gotweb.css @@ -329,6 +329,7 @@ header.subtitle h2 { text-align: right; width: 60px; padding-right: 20px; + user-select: none; } .blame_code, .blob_code { /* fixes the width of the first tab */ blob - 7f69ce9024e9a57fbdd1f4b1b3aa6f64dacb8aae blob + d6f39ddd87489a5be6dceeaae758836ca25385f3 --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -637,8 +637,7 @@ nextsep(char *s, char **t) return -1; !}
- {{ lineno }} - {{" "}} + {{ lineno }}{{" "}} {{ line }}
{{ end }}