Skip to content

Commit 50bb15a

Browse files
authored
Merge pull request #299 from ma10/yaml2sheet-blank-cells-20250509
Make blank cells truely blnak.
2 parents 97014bd + bd8c504 commit 50bb15a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/scripts/yaml2sheet/src/yaml2sheet/cell_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
self.type = type
3939

4040
# 値が None の場合は書式設定も適用しない(完全に空のセルにする)
41-
if self.value is None and not protection and not validation:
41+
if self.value is None:
4242
self.formatting = None
4343
else:
4444
self.formatting = formatting
@@ -57,7 +57,7 @@ def to_sheets_value(self) -> Dict:
5757

5858
is_empty = self.value is None or (isinstance(self.value, str) and not self.value.strip())
5959

60-
if is_empty and not self.protection and not self.validation:
60+
if is_empty:
6161
result["userEnteredValue"] = None
6262
else:
6363
if self.type == CellType.PLAIN:

0 commit comments

Comments
 (0)