Comments (3)
Origin xml
<row r="3" spans="4:8">
<c r="D3" s="26" t="s"><v>2189</v></c>
<c r="E3" s="26" t="str"><f t="shared" si="0"/><v>sometext</v></c>
<c r="G3" s="26" t="s"><v>2186</v></c>
<c r="H3" s="26" t="s"><v>2190</v></c>
</row>
After truncateSheetXMLValueOnly
<row r="3" spans="4:8">
<c r="D3" s="26" t="s"><v>2189</v></c>
<v>sometext</v></c>
<c r="G3" s="26" t="s"><v>2186</v></c>
<c r="H3" s="26" t="s"><v>2190</v></c>
</row>
It seems that the bug was wrong regex in
Line 1154 in 840e9ee
It's matched with the tag f
from xlsx.
regex can be change to
(?s)<c [^>]*?/[>|c>]
from xlsx.
btw, func truncateSheetXMLValueOnly
was quite low efficiency because replace iteration by row and cell.
the logic was detecting rows or cells without value (v tag), why we just using regex to matched them, and replace all
It tasks 20 second on my mac to truncate a xml with 100,0000 rows
from xlsx.
Related Issues (20)
- Time accuracy HOT 1
- v3: got empty string in some cells with content HOT 1
- tag a new release from unreleased commits HOT 1
- SetHyperlink execution error HOT 1
- Shit library HOT 1
- Shit library
- Security protection is recommended for functions OpenReaderAt and OpenFile. HOT 1
- The func (f *File) Save(path string) (err error) resource in the file.go file is leaked. HOT 1
- Resource leakage in the lib.go file HOT 2
- Can it support multiple drop lists? HOT 2
- oom err HOT 3
- Read the contents of an Excel file in batches using stream processing
- how to get the number of cells in a row
- RowLimit option truncating xml ignore xmlns prefix
- codecov.io reports needs activation HOT 1
- 不支持 go1.21 版本,麻烦给处理一下,谢谢 HOT 6
- Bug:Version v3 appendsheet is empty from the second sheet, v1.0.5 is normal HOT 6
- golang 1.21 incompatibility - Suddenly all my sheets are empty -- all projects HOT 8
- how to set cell custom type as yyyy/mm/dd hh:mm:ss HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xlsx.