Skip to content

Table Column data exceeds its width How to ? #3696

Answered by junmaqiang
junmaqiang asked this question in Q&A
Discussion options

You must be logged in to vote

I solved the problem

		if len(x.Remark) >= 20 {
			newStr := []rune(x.Remark)
			currentRow.Remark = string(newStr[0:7]) + strings.Repeat(".", 3)
		} else {
			currentRow.Remark = x.Remark
		}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by junmaqiang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant