diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-05-06 13:44:36 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-05-06 14:19:53 +0300 |
commit | 107c20a11f1753a23496a57ea8f04178e59f6810 (patch) | |
tree | 56aada73d13f2ad399a4a24062503386411c3472 /sphinx/templates | |
parent | 035d5507f0cef2fd636bf90a08ff32a69f8a1cf6 (diff) |
Fix #4550: html: Centering tables by default using CSS
Diffstat (limited to 'sphinx/templates')
-rw-r--r-- | sphinx/templates/latex/longtable.tex_t | 2 | ||||
-rw-r--r-- | sphinx/templates/latex/tabular.tex_t | 2 | ||||
-rw-r--r-- | sphinx/templates/latex/tabulary.tex_t | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/templates/latex/longtable.tex_t b/sphinx/templates/latex/longtable.tex_t index ade1a54af..8fe5369df 100644 --- a/sphinx/templates/latex/longtable.tex_t +++ b/sphinx/templates/latex/longtable.tex_t @@ -1,5 +1,5 @@ \begin{savenotes}\sphinxatlongtablestart\begin{longtable} -<%- if table.align == 'center' -%> +<%- if table.align in ('center', 'default') -%> [c] <%- elif table.align == 'left' -%> [l] diff --git a/sphinx/templates/latex/tabular.tex_t b/sphinx/templates/latex/tabular.tex_t index a4f56feb3..a0db7faff 100644 --- a/sphinx/templates/latex/tabular.tex_t +++ b/sphinx/templates/latex/tabular.tex_t @@ -1,6 +1,6 @@ \begin{savenotes}\sphinxattablestart <% if table.align -%> - <%- if table.align == 'center' -%> + <%- if table.align in ('center', 'default') -%> \centering <%- elif table.align == 'left' -%> \raggedright diff --git a/sphinx/templates/latex/tabulary.tex_t b/sphinx/templates/latex/tabulary.tex_t index e3534725b..3236b798a 100644 --- a/sphinx/templates/latex/tabulary.tex_t +++ b/sphinx/templates/latex/tabulary.tex_t @@ -1,6 +1,6 @@ \begin{savenotes}\sphinxattablestart <% if table.align -%> - <%- if table.align == 'center' -%> + <%- if table.align in ('center', 'default') -%> \centering <%- elif table.align == 'left' -%> \raggedright |