From fe7708b65b7d479e795f379e11ab486d2d08af4e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 30 Nov 2024 12:07:59 +0000 Subject: Convert checkbox document elements to HTML checkboxes --- mammoth/documents.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mammoth/documents.py') diff --git a/mammoth/documents.py b/mammoth/documents.py index b49a602..f782d32 100644 --- a/mammoth/documents.py +++ b/mammoth/documents.py @@ -65,6 +65,12 @@ class Hyperlink(HasChildren): anchor = cobble.field() target_frame = cobble.field() +@cobble.data +class Checkbox(Element): + checked = cobble.field() + +checkbox = Checkbox + @cobble.data class Table(HasChildren): style_id = cobble.field() -- cgit v1.2.3