Bug 59208

Summary: bold xml value of "1" treated as false
Product: POI Reporter: Javen O'Neal <onealj>
Component: XWPFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.15-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Javen O'Neal 2016-03-22 02:39:13 UTC
From http://stackoverflow.com/questions/35583073/is-using-1-instead-of-true-in-a-docs-file-valid

DOCX files generated by Google Docs use <w:b w:val="1"/> to represent a run of bold text. In POI 3.14, run.isBold() incorrectly returns false in the above scenario.

Per the OOXML schema, valid True values for bold are "true", "on", and "1", and valid False values for bold are "false", "off", and "0".
Comment 1 Javen O'Neal 2016-03-22 04:24:53 UTC
Fixed in r1736126. Will be available in POI 3.15 beta 1.