fix: suppressed cell borders export as w:val="nil", not "none"
nil is the explicit absence that wins every border-conflict rule in Word — a cell's none can still lose against table-level borders there, which kept the black grid over styled tables. LibreOffice reads both alike, and the importer already maps nil to none.
This commit is contained in:
1 parent
2642fc61c6
commit
26593d0a7a
1 file changed
+3
-1
@@ -2039,7 +2039,9 @@ function cellForce(style: TableStyle | undefined, cell: TiptapNode, bg: unknown)
|
||||
return force;
|
||||
}
|
||||
|
||||
const noneBorder: IBorderOptions = { style: BorderStyle.NONE, size: 0, color: 'auto' };
|
||||
// "nil" is the explicit absence that wins every border-conflict rule in Word — a cell's
|
||||
// "none" can still lose against table-level borders there; LibreOffice reads both alike.
|
||||
const noneBorder: IBorderOptions = { style: BorderStyle.NIL, size: 0, color: 'auto' };
|
||||
|
||||
function docxCellBorder(attrs: Record<string, unknown> | undefined, side: BorderSide, fallback: IBorderOptions = cellBorder): IBorderOptions {
|
||||
const b = parseBorderAttr(attrs?.[side] as string | null);
|
||||
|
||||
Reference in new issue
Block a user