diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-05-12 13:33:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-12 13:33:37 +0900 |
commit | c27373ad762d99796f6c83b31072501d403a43ef (patch) | |
tree | c8274d921d90adf445f603c1a8a1af163fb00d6d /sphinx/templates | |
parent | b5cb9b4ca4d55696d8f3310a722a6344c9090e57 (diff) | |
parent | 107c20a11f1753a23496a57ea8f04178e59f6810 (diff) | |
download | sphinx-git-c27373ad762d99796f6c83b31072501d403a43ef.tar.gz |
Merge pull request #6341 from tk0miya/4550_centering_tables_using_css
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 |