From e0ac3f92cf22c4ea608bdba8d67be22da51460ed Mon Sep 17 00:00:00 2001 From: Luca Baffa Date: Fri, 12 Apr 2024 10:37:24 +0100 Subject: [PATCH 1/2] update table style example and following description --- docs/user/quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index 0d6982ee0..86c79d75d 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -165,9 +165,9 @@ The same works for columns, although I've yet to see a use case for it. Word has a set of pre-formatted table styles you can pick from its table style gallery. You can apply one of those to the table like this:: - table.style = 'LightShading-Accent1' + table.style = 'Light Shading Accent 1' -The style name is formed by removing all the spaces from the table style name. +The style name is formed by removing all the hyphens from the table style name. You can find the table style name by hovering your mouse over its thumbnail in Word's table style gallery. From 7d729a733d3748c2da49a2773c1eb28e817549aa Mon Sep 17 00:00:00 2001 From: Luca Baffa Date: Fri, 12 Apr 2024 10:42:36 +0100 Subject: [PATCH 2/2] add example to support the table style name description --- docs/user/quickstart.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index 86c79d75d..3a6af4e0c 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -167,7 +167,8 @@ gallery. You can apply one of those to the table like this:: table.style = 'Light Shading Accent 1' -The style name is formed by removing all the hyphens from the table style name. +The style name is formed by removing all the hyphens from the table style name, +so that *Light Shading - Accent 1* becomes *Light Shading Accent 1*. You can find the table style name by hovering your mouse over its thumbnail in Word's table style gallery.