Kaydet (Commit) 0e0f197f authored tarafından Markus Mohrhard's avatar Markus Mohrhard

handle formula cells also in the python script

Change-Id: I8a68cbd68db89c3e30827fa449e18f6c13f4d6e0
Reviewed-on: https://gerrit.libreoffice.org/41220Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst b06c374a
......@@ -35,6 +35,17 @@ def parse_block(data, index):
index += 4
vals[start_row + i] = data[index:index+str_length].decode("utf-8")
index += str_length
elif block_type == 3:
# formula block
read_rows = 0
while read_rows < data_size:
formula_group_size = struct.unpack('Q', data[index:index+8])[0]
index += 8
str_length = struct.unpack('i', data[index:index+4])[0]
index += 4
vals[start_row + read_rows] = (data[index:index+str_length].decode("utf-8"), "formula group length %i"% formula_group_size)
read_rows += formula_group_size
index += str_length
return index, data_size, vals
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment