Thanks, Takayuki.
With your pointer, I found this this bug:
http://sourceforge.net/p/docutils/bugs/108/
which was marked as wontfix in 2008. Apparently I'm not the first one to
complain about this violation of how to use CSS. But I guess it won't be worth
fighting over again; I'll find a workaround.
Thanks,
Johannes.
On Aug 20, 2014, at 5:50, Takayuki Shimizukawa <[email protected]> wrote:
> Hi,
>
> I think there is no way to remove `border="1"` from sphinx html
> builder because the border attribute derived from
> docutils.writers.html4css1 writer and the writer certainly emit a
> `border` attribute.
> http://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/docutils/writers/html4css1/__init__.py#l1557
>
> In docutils case, border-less is enforced by CSS with --table-style option.
> http://docutils.sourceforge.net/docs/user/config.html#table-style
>
> In sphinx case, you can provide a custom html translator class that
> derived from sphinx.writers.html.HTMLTranslator and override the
> visit_table method.
> You can specify the custom translator class by using
> html_translator_class in a conf.py.
> http://sphinx-doc.org/config.html#confval-html_translator_class
>
> Regards,
> --
> Takayuki SHIMIZUKAWA
> http://about.me/shimizukawa
>
>
> 2014-08-19 5:52 GMT+09:00 Johannes Ernst <[email protected]>:
>> The table statement seems to generate this HTML:
>>
>> <table border="1" ...
>>
>> I don't want it to generate the border=1; that something that I'd like to do
>> via CSS.
>>
>> Which bit do I have to modify to remove this? It does not seem to be in the
>> template(s) as far as I can tell.
>>
>> Thanks,
>>
>>
>>
>> Johannes.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sphinx-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/sphinx-users.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.