Bug 59208 - bold xml value of "1" treated as false
Summary: bold xml value of "1" treated as false
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XWPF (show other bugs)
Version: 3.15-dev
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-22 02:39 UTC by Javen O'Neal
Modified: 2016-03-22 04:24 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.