1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-29 09:31:11 -05:00
forgejo/modules/base
zeripath f6eedd4dc8 UI: Detect and restore encoding and BOM in content (#6727)
* detect and remove a decoded BOM

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Restore the previous encoding and BOM

* On error keep as UTF-8

Signed-off-by: Andrew Thornton <art27@cantab.net>

* create remove BOM function

* Deal with LFSed content

* Update modules/repofiles/update.go

* Fix final LFS bug

* Keep LFS sections referring to opts.Content
2019-04-26 15:00:30 +03:00
..
base.go golint fixed for modules/base 2016-11-24 15:17:44 +08:00
natural_sort.go Sort repository tree entries in natural way (#2506) 2017-09-19 11:37:03 +03:00
natural_sort_test.go Sort repository tree entries in natural way (#2506) 2017-09-19 11:37:03 +03:00
tool.go UI: Detect and restore encoding and BOM in content (#6727) 2019-04-26 15:00:30 +03:00
tool_test.go Use type switch (#5122) 2018-10-19 14:54:26 -04:00