From a70b8130a590a7a8afbba9a345343b4558cbc545 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Tue, 3 Apr 2018 17:13:26 +0100 Subject: [PATCH] Add quotes around code --- docs/reference/contrib/table_block.rst | 6 +++--- docs/releases/1.2.rst | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/contrib/table_block.rst b/docs/reference/contrib/table_block.rst index 4e2a92c80e..c3b86a9fc0 100644 --- a/docs/reference/contrib/table_block.rst +++ b/docs/reference/contrib/table_block.rst @@ -70,14 +70,14 @@ Every key in the ``table_options`` dictionary maps to a `handsontable `_ - The default number of rows for a new table. * `startCols `_ - The default number of columns for new tables. * `colHeaders `_ - Can be set to ``True`` or ``False``. This setting designates if new tables should be created with column rows. **Note:** this only sets the behaviour for newly created tables. Page editors can override this by checking the the “Column header” checkbox in the table editor in the Wagtail admin. -* `rowHeaders `_ - Operates the same as colHeaders to designate if new tables should be created with the first row as a header. Just like colHeaders this option can be overridden by the page editor in the Wagtail admin. +* `rowHeaders `_ - Operates the same as ``colHeaders`` to designate if new tables should be created with the first row as a header. Just like ``colHeaders`` this option can be overridden by the page editor in the Wagtail admin. * `contextMenu `_ - Enables or disables the handsontable right-click menu. By default this is set to ``True``. * `editor `_ - Defines the editor used for table cells. The default setting is text. * `stretchH `_ - Sets the default horizontal resizing of tables. Options include, 'none', 'last', and 'all'. By default TableBlock uses 'all' for the even resizing of columns. -* `height `_ - The default height of the grid. By default TableBlock sets the height to ``108`` for the optimal appearance of new tables in the editor. This is optimized for tables with ``startRows`` set to ``3``. If you change the number of startRows in the configuration you might need to change the ``height`` setting to improve the default appearance in the editor. +* `height `_ - The default height of the grid. By default TableBlock sets the height to ``108`` for the optimal appearance of new tables in the editor. This is optimized for tables with ``startRows`` set to ``3``. If you change the number of ``startRows`` in the configuration you might need to change the ``height`` setting to improve the default appearance in the editor. * `language `_ - The default language setting. By default TableBlock tries to get the language from ``django.utils.translation.get_language``. If needed, this setting can be overridden here. * `renderer `_ - The default setting handsontable uses to render the content of table cells. -* `autoColumnSize `_ - Enables or disables the autoColumnSize plugin. The TableBlock default setting is ``False``. +* `autoColumnSize `_ - Enables or disables the ``autoColumnSize`` plugin. The TableBlock default setting is ``False``. A `complete list of handsontable options `_ can be found on the handsontable website. diff --git a/docs/releases/1.2.rst b/docs/releases/1.2.rst index 89044f46c6..4a16e1e4d3 100644 --- a/docs/releases/1.2.rst +++ b/docs/releases/1.2.rst @@ -77,7 +77,7 @@ Minor features * WagtailRedirectMiddleware can now ignore the query string if there is no redirect that exactly matches it * Order of URL parameters now ignored by redirect middleware * Added SQL Server compatibility to image migration - * Added classnames to Wagtail rich text editor buttons to aid custom styling + * Added ``classnames`` to Wagtail rich text editor buttons to aid custom styling * Simplified body_class in default homepage template * page_published signal now called with the revision object that was published * Added a favicon to the admin interface, customisable by overriding the ``branding_favicon`` block (see :ref:`custom_branding`).