• Resolved suze288

    (@suze288)


    Hi, this is such a simple problem but I can’t find an answer anywhere. I am trying to crate paragraphs in table columns, ie. pressing enter between two blocks of text. But when I press enter the formatting for the second block goes haywire- larger text, more spacing etc. How can I create paragraphs? Surely other people are having trouble with this?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter suze288

    (@suze288)

    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.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter suze288

    (@suze288)

    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!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter suze288

    (@suze288)

    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.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter suze288

    (@suze288)

    Ah, ok. I’ll see if someone can convert it into a json file for me then.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter suze288

    (@suze288)

    Thanks Tobias 🙂 I’ve added it here.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter suze288

    (@suze288)

    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!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Creating paragraphs in columns’ is closed to new replies.