Hi,
thanks for your post, and sorry for the trouble.
Normally, pressing enter inside a table cell will add line breaks, but not any formatting changes. Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
Hi Tobias,
I can’t post a link as I’m using TablePress as a plugin with Pressbooks and I’m not able to add people to the book (it’s currently not published). There’s no way to add a screenshot here either.
Hi,
ah, I see. As for screenshots, you could upload it to a service like https://imgur.com/ and post the link here.
Regards,
Tobias
Hi,
I couldn’t use imgur- doesn’t work in my region but hopefully this is a workaround. You can see in the first two columns I haven’t pressed enter but in the second two I have and it’s caused issues.
https://bridges.monash.edu/articles/media/Test_table/20264463
Thanks!
Hi,
that looks odd, indeed. Is this pure text in the cells, or is there HTML code e.g. for links or other things?
Can you provide a JSON export of this table, for download? That might help me check if there’s something unexpected in the content, but if not, there’s nothing much that I can do without actually seeing the page, so that I can inspect it with the browser’s developer tools.
Regards,
Tobias
Would a google sheet do? This is a smaller table which is working at the moment but only because it doesn’t have paragraphs. I have tested putting paragraphs in after importing it into TablePress and the same thing happens.
Hi,
that doesn’t really help, no 🙁 I would need to see the full and exact HTML code of that table. I can then check if there’s maybe invalid or broken HTML code, or if there is HTML code for which the styling could be affected by other CSS code on the page.
Regards,
Tobias
Ah, ok. I’ll see if someone can convert it into a json file for me then.
Hi,
you can actually export the table to a JSON file on the “Export” screen of TablePress 🙂 Just choose the table there, select JSON as the format, and click “Export” to download that JSON file.
Best wishes,
Tobias
Thanks Tobias 🙂 I’ve added it here.
Hi,
thanks for that! I can’t really see anything in the table that could be causing the formatting/font size change here.
Now, there is one small error in cell B2, where the <sup>2<sup> should be <sup>2</sup> (note the / in the closing HTML tag), but that shouldn’t really have that much influence here.
So I would need to be able to see the page, I’m afraid. Of course, you could also try investigating this with the browser’s developer tools, to see if there’s any CSS being applied to the texts in the table.
Regards,
Tobias
Hi Tobias,
It’s been fixed. A colleague added </br> to the end of the first paragraph and problem solved. I actually tried this earlier based on advice from the forum but I didn’t understand it had to be added to the end of the first paragraph and put it on a new line, so it didn’t work. Thanks very much for spending your time looking into this for me. I hope this helps others who can’t code and find some advice difficult to understand!
Hi,
great! Good to hear that you were able to solve this. I don’t understand why this extra <br /> was needed though, so this might be some customization needed for PressBooks only.
Best wishes,
Tobias