Commit 4f8c1519 authored by yanzg's avatar yanzg

接口文档的支持

parent b188ea55
......@@ -420,7 +420,7 @@ public class ExcelConsole<T extends Object> implements DbRow<T> {
private Cell createCell(Row row, int column, String content) {
// 获取字节数、用于设置最大宽度
int chinaCount = chinese.matcher(content).groupCount();
int bytes = (content.length() - chinaCount) + (int) Math.round(chinaCount * 1.5);
int bytes = (content.length() - chinaCount) + chinaCount * 2;
int maxBytes = Math.max(columnBytes.getOrDefault(column, 0), bytes);
columnBytes.put(column, maxBytes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment