commit 83985e6a8ae699605976783dc7e854050f1bd79f from: Omar Polo via: Thomas Adam date: Wed Jan 31 22:01:32 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 - f03e50d6fa7d457cde6feabb23a528f11bb45461 commit + 83985e6a8ae699605976783dc7e854050f1bd79f 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 - f5ec9427b8109fc6f4060a3c56f7a842acf8bd5a blob + 45a6e0c73c10d059b3599a6d9b323bc91124ea99 --- gotwebd/pages.tmpl +++ gotwebd/pages.tmpl @@ -637,8 +637,7 @@ nextsep(char *s, char **t) return -1; !}
- {{ lineno }} - {{" "}} + {{ lineno }}{{" "}} {{ line }}
{{ end }}