From 2b97c3bb463b28e3d81f714ef55798621174e0a1 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Mon, 9 Apr 2018 19:44:08 +0800 Subject: [PATCH] - Support to read inlineStr type cell value, relate issue #208, PR #209; - go test and godoc has been updated --- rows.go | 2 ++ test/Book1.xlsx | Bin 22981 -> 23005 bytes xmlWorksheet.go | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+) diff --git a/rows.go b/rows.go index f7ae7f9..25a2049 100644 --- a/rows.go +++ b/rows.go @@ -174,6 +174,8 @@ func (xlsx *xlsxC) getValueFrom(f *File, d *xlsxSST) (string, error) { return f.formattedValue(xlsx.S, d.SI[xlsxSI].T), nil case "str": return f.formattedValue(xlsx.S, xlsx.V), nil + case "inlineStr": + return f.formattedValue(xlsx.S, xlsx.IS.T), nil default: return f.formattedValue(xlsx.S, xlsx.V), nil } diff --git a/test/Book1.xlsx b/test/Book1.xlsx index 7168ff1e74c9fd67e7b86e7ed16815135baaca94..f94dfe9244a1a6c59be67ffe434022fef479adc7 100644 GIT binary patch delta 1357 zcmX@Qnepys#trODOf&m8b26DRf@nu(Pi7!Jxra?2#9hng2NItAmt76SRpls<0dc3R zXn?o}Ro1hD=prq1J`layA`xr|pVe*-kh0TGS|H)?PA)7$jI;WEWcT_%lVN6Hi05Kp zkYJcx7%5dhH!OPcECZ3c_dfrbCx6#-aX1oKzU|iBch1Y_#?4n|JEaVqxkb^EG$QU0grEUtaCR#I7mQlRi&6 zcX6Uu$^MG}d1VhCMW#*BVi)kTbe|b?^-5{#q>D`_tm7^U`32SMaV<*F-nMQHi>h>R z$dh*`J|D|-jOfg2S-FF)dAX+di!SxuP19Df37V*LeL39|y2(|0QuYHbrFrF7+grp% z9o9siyK=EXX}QNT|J#$eH=R59otw|&Qqt?Q0{ap=A52>QitmBcLg(`vrFS=MnUO1D zaUr*y#rOFOM*naL<#I#gllA*0ZBN|0b@6Xp@xL|Z{|t{)=xs*ggByjT@~^*Y0#_Y?{GYSJ1L@vgp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