mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Detect delimiter in CSV rendering (#7869)
* detect csv delimiter in csv rendering fixes #7868 * make linter happy * fix failing testcase & use ints where possible * expose markup type to template previously all markup had the .markdown class, which is incorrect, as it applies markdown CSS & JS logic to CSV rendering * fix build (missing `make css`) * ignore quoted csv content for delimiter scoring also fix html generation
This commit is contained in:
@@ -489,6 +489,7 @@ footer .ui.left,footer .ui.right{line-height:40px}
|
||||
.repository.file.list .non-diff-file-content .view-raw img{padding:5px 5px 0 5px}
|
||||
.repository.file.list .non-diff-file-content .plain-text{padding:1em 2em 1em 2em}
|
||||
.repository.file.list .non-diff-file-content .plain-text pre{word-break:break-word;white-space:pre-wrap}
|
||||
.repository.file.list .non-diff-file-content .csv{overflow-x:auto}
|
||||
.repository.file.list .non-diff-file-content pre{overflow:auto}
|
||||
.repository.file.list .sidebar{padding-left:0}
|
||||
.repository.file.list .sidebar .octicon{width:16px}
|
||||
|
@@ -400,6 +400,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.csv {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
Reference in New Issue
Block a user