refactor: Reduce DeprecationWarnings

This commit is contained in:
Takeshi KOMIYA 2018-05-07 21:27:47 +09:00
parent 3fdef7ec62
commit 4c3e757ad7
4 changed files with 4 additions and 13 deletions

View File

@ -25,8 +25,5 @@
\endfoot \endfoot
\endlastfoot \endlastfoot
<% if table.caption_footnotetexts -%>
<%= ''.join(table.caption_footnotetexts) %>
<% endif -%>
<%= ''.join(table.body) %> <%= ''.join(table.body) %>
\end{longtable}\sphinxatlongtableend\end{savenotes} \end{longtable}\sphinxatlongtableend\end{savenotes}

View File

@ -18,9 +18,6 @@
\begin{tabular}[t]<%= table.get_colspec() -%> \begin{tabular}[t]<%= table.get_colspec() -%>
\hline \hline
<%= ''.join(table.header) %> <%= ''.join(table.header) %>
<%- if table.caption_footnotetexts -%>
<%= ''.join(table.caption_footnotetexts) -%>
<%- endif -%>
<%=- ''.join(table.body) %> <%=- ''.join(table.body) %>
\end{tabular} \end{tabular}
\par \par

View File

@ -18,9 +18,6 @@
\begin{tabulary}{\linewidth}[t]<%= table.get_colspec() -%> \begin{tabulary}{\linewidth}[t]<%= table.get_colspec() -%>
\hline \hline
<%= ''.join(table.header) %> <%= ''.join(table.header) %>
<%- if table.caption_footnotetexts -%>
<%= ''.join(table.caption_footnotetexts) -%>
<%- endif -%>
<%=- ''.join(table.body) %> <%=- ''.join(table.body) %>
\end{tabulary} \end{tabulary}
\par \par

View File

@ -6,7 +6,7 @@ templates_path = ['_templates']
def setup(app): def setup(app):
app.add_stylesheet('persistent.css') app.add_css_file('persistent.css')
app.add_stylesheet('default.css', title="Default") app.add_css_file('default.css', title="Default")
app.add_stylesheet('alternate1.css', title="Alternate", alternate=True) app.add_css_file('alternate1.css', title="Alternate", rel="alternate stylesheet")
app.add_stylesheet('alternate2.css', alternate=True) app.add_css_file('alternate2.css', rel="alternate stylesheet")