Skip to content

Commit ed6751f

Browse files
committed
Rollback "Try to fix non ASCII character": it doesn't fix the problem.
1 parent 1f6c793 commit ed6751f

2 files changed

Lines changed: 3 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ More infos about this file : http://keepachangelog.com/
66

77
## [Unreleased] - no_due_date
88

9+
- **Rollback "Try to fix non ASCII character": it doesn't fix the problem.**
10+
911
## [v1.0.3] - 2019.04.26
1012

1113
- **Try to fix non ASCII character**

core/src/main/scala/com/colisweb/jruby/concurrent/constant/memory/excel/ConcurrentConstantMemoryExcel.scala

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import org.apache.poi.xssf.streaming.SXSSFWorkbook
1717
import scala.annotation.switch
1818
import scala.collection.immutable.SortedSet
1919
import scala.collection.mutable.ListBuffer
20-
import org.apache.poi.common.usermodel.fonts.FontCharset
2120

2221
sealed abstract class Cell extends Product with Serializable
2322
object Cell {
@@ -116,13 +115,6 @@ object ConcurrentConstantMemoryExcel {
116115
headerStyle.setAlignment(HorizontalAlignment.CENTER)
117116
headerStyle.setFont(boldFont)
118117

119-
val stringCellFont = wb.createFont()
120-
stringCellFont.setBold(false)
121-
stringCellFont.setCharSet(FontCharset.ANSI.getNativeId)
122-
123-
val stringCellStyle = wb.createCellStyle()
124-
stringCellStyle.setFont(stringCellFont)
125-
126118
val header = sheet.createRow(0)
127119
for ((celldata, cellIndex) <- cms.headerData.zipWithIndex) {
128120
val cell = header.createCell(cellIndex, CellType.STRING)
@@ -143,10 +135,7 @@ object ConcurrentConstantMemoryExcel {
143135
cellData match {
144136
case Cell.BlankCell => row.createCell(cellIndex, CellType.BLANK)
145137
case Cell.NumericCell(value) => row.createCell(cellIndex, CellType.NUMERIC).setCellValue(value)
146-
case Cell.StringCell(value) =>
147-
val cell = row.createCell(cellIndex, CellType.STRING)
148-
cell.setCellStyle(stringCellStyle)
149-
cell.setCellValue(value)
138+
case Cell.StringCell(value) => row.createCell(cellIndex, CellType.STRING).setCellValue(value)
150139
}
151140
}
152141
}

0 commit comments

Comments
 (0)