forked from gitea/gitea
1
0
Fork 0
gitea/modules/indexer/code
Giteabot 9db426ad8c
Fix wrong line number in code search result (#29260) (#29623)
Backport #29260 by @yp05327

Fix #29136

Before:
The result is a table and all line numbers are all in one row.

![image](https://github.com/go-gitea/gitea/assets/18380374/7a18b354-e257-4f57-a5ca-f6d37378edf6)

![image](https://github.com/go-gitea/gitea/assets/18380374/98416e11-89b5-4b4f-920b-91bcf041a87f)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/f189e436-9046-4431-926a-cd0deb58e8f1)

![image](https://github.com/go-gitea/gitea/assets/18380374/07d213ed-2401-4b7f-b951-5df7dc776af4)

~~Updated:~~
~~added `active` class to the target line.~~

![image](https://github.com/go-gitea/gitea/assets/18380374/0b274e48-048a-4c66-ba95-df515212ec08)

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-03-06 10:05:41 +01:00
..
bleve Preserve BOM in web editor (#28935) (#28959) 2024-01-27 23:23:31 +01:00
elasticsearch fix: Elasticsearch: Request Entity Too Large #28117 (#29062) (#29075) 2024-02-07 17:21:28 +08:00
internal Refactor indexer (#25174) 2023-06-23 12:37:56 +00:00
git.go Update status and code index after changing the default branch (#27018) 2023-09-13 04:43:31 +00:00
indexer.go Clarify the git command Stdin hanging problem (#26967) 2023-09-08 13:20:38 +00:00
indexer_test.go move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
search.go Fix wrong line number in code search result (#29260) (#29623) 2024-03-06 10:05:41 +01:00