Thanks for this plausible answer! I am not very familiar with CSS. Do you have a sample code snippet on how to remove the <p> margin in the table header tag?
Am Montag, 6. Januar 2020 13:14:18 UTC+1 schrieb Libor Jelinek: > > Hello Dirk! > I've also noticed that my tables header rows got taller. But it's not > related to RTD theme. If you look at generated source code, Sphinx inserts > header in <p> that has margin-bottom: 24px: > > [image: image.png] > > For example old Sphinx 1.8.1 from Sep 2, 2018 doesn't wrap headers in <p>. > Docs you posted as example must be built with such old Sphinx. Current > version current 2.3.1. inserts <p>. Don't ask me why. > > Workaround if it's critical, use styles to remove margins for <p> inside > <th>. > > Libor > > po 6. 1. 2020 v 11:28 odesÃlatel 'Dirk Baumbach' via sphinx-users < > [email protected] <javascript:>> napsal: > >> Hello, >> >> i have this weird issue, an additional newline is added in every header >> cell of a table: >> >> >> The Code: >> >> .. list-table:: >> :header-rows: 1 >> :align: left >> >> * - Inport >> - OutDataTypeStr >> - OutMin >> - OutMax >> - PortDimensions >> - SampleTime >> - SignalType >> - Description >> * - u1 >> - Inherit: auto >> - [] >> - [] >> - -1 >> - -1 >> - real >> - This is the dividend. >> * - u2 >> - Inherit: auto >> - [] >> - [] >> - -1 >> - -1 >> - real >> - This is the divisor. >> >> >> It doesn't matter with which directive the table was created. It happens >> with all types (simple table, list-table, csv-table, ...). I know this must >> be a bug, because all example rtd-documentations don't have this issue: >> >> >> https://sphinx-rtd-theme.readthedocs.io/en/stable/demo/lists_tables.html#list-tables >> >> http://mbless.de/blog/2015/06/16/files/demo_docs/index.html#giant-tables >> >> I'm using the latest versions of both sphinx and the rtd-theme >> >> I didn't found anything like this on google so far. >> >> Does anyone have experience with this issue? >> >> Sincerly >> Dirk >> >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sphinx-users/c591b21e-c36b-41e3-a601-8443980e571b%40googlegroups.com >> >> <https://groups.google.com/d/msgid/sphinx-users/c591b21e-c36b-41e3-a601-8443980e571b%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/ed3c4f36-953f-442b-b044-62c881b3f894%40googlegroups.com.
