• Resolved dcason

    (@dcason)


    Weird problem:

    One of my tables is refusing to recognize line breaks and create the
    tag in the html. Other tables are working fine. You can see an example here

    The table under tab 3 works, and is inserting line breaks (checked in firebug). The table under tab 2 is not. I tried recreating this table from scratch to no avail. I even tried duplicating the working table (tab 3) and then editing the content to what I needed for tab 2. Still doesn’t work.

    Any suggestions?

    https://www.ads-software.com/extend/plugins/wp-table-reloaded/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I can see line breaks (<br/> HTML tags) in both of your tables at the places where I think they were intended to be.
    Where exactly are the line breaks not working (which row/column)?

    Regards,
    Tobias

    Thread Starter dcason

    (@dcason)

    Hi,

    That’s quite bizarre.

    On tab 2 (Choose an ensemble), column 3 (Details), for example, there should be line breaks between “Robust sound” and “Large repertoire” and “Suitable…”. For me, they are displaying inline, and in Firebug do not have
    tags. Are you saying that you have line breaks in column 3?

    In columns 2 and 4 I specified widths to force-fit the lines, but I would rather just have
    s and let the table auto-size.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, ok. No I see the problem.
    The weird thing is, that the <br/> are in the HTML source, so WP-Table Reloaded is doing its job and working as expected.
    It’s just that for some reason, the <br/> tags are not evaluated/used by the browser.

    This might have to do with the tabs plugin that you use and how the Shortcodes (I assume that it uses Shortcodes) are structured. Shortcodes that add HTML code need to be handled with special care, as they might result in wrong HTML code, due to some internal WordPress functionality (“wpautop”). This might be the case here, as you can see on https://validator.w3.org/check?uri=http%3A%2F%2Ffourstrings.com%2Fwp%2Fplanning-your-event%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    Can you maybe create a test page and add just the table to it, to see if the line breaks are working then?

    Regards,
    Tobias

    Thread Starter dcason

    (@dcason)

    Bizarre. Check this out.

    First, I tried what you suggested – just the table – and it worked.

    Then, I tried the table inside a tab – and it worked.

    Then I tried both tables inside tabs – and it worked.

    Then I tried carefully recreating the whole page – and it all works.

    For grins, I tried copying and pasting the all the content of the old page to the new page in the WP html editor panel – it immediately broke that same table.

    Finally, I reversed the process – copying the text of the new page and replacing the old page and – it works!

    So, this is one of those “the WP html editor isn’t showing me something that is actually in there” problems, I think.

    Thanks for the help though! That suggestion got me going!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    awesome! ?? Yes, then indeed, this was a problem with some weird HTML.

    Just in case you are not already doing it: For editing tables that contain Shortcodes that add HTML, it’s usually better to use the “HTML editor” and not the “Visual editor” on the page’s “Edit” screen. In the HTML editor you can see all content (even HTML code), while thisis not he case in the Visual editor, especially with things like <br/> or <p>.

    Best wishes,
    Tobias

    Thread Starter dcason

    (@dcason)

    Yeah, I almost never use the visual editor (except maybe for simple blog posts) for exactly that reason. Also, switching back and forth between views can totally foul up your code.

    However, I’ve also found on occasion (like this one) that the even the internal html editor is liable to this kind of “invisible code” problem. Particularly with cut and paste.

    Thanks again!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that’s indeed possible as well. And especially with Shortcodes and HTML it is imported how line breaks (real line breaks in the editor, not <br/> tags) and empty lines are added. For example, WordPress will usually look for two line breaks in a row and replace those with a <p>. For HTML content, this can then cause trouble.

    But it’s definitely good to see that your problem with this is now solved ??

    Best wishes,
    Tobias

    Hi,
    I have a variation on this problem..
    The tag (and the <p></p> tags stopped supplying empty lines a long time ago in the site I’m managing (https://www.matthewfox.org) so I installed the Line Break Shortcode plugin, which uses the tag [br]. That worked fine – for a while. Now it’s stopped.
    Out of desperation I tried entering the “nbsp” space code for new lines. Right now that’s working like a charm…but who knows for how long?
    Do you have any insights on what’s happening here?
    Thanks,
    Phila

    A P.S. – the text editor’s gone completely insane. I was using the nbsp code, again, as nothing else worked, and (why should I be surprised?) the workaround stopped working. Now it seems WP is stripping out any kind of line break I enter.
    Please help!
    Thanks,
    Phila

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Phila,

    thanks for your question.

    Your problem might sound like a variation of the original poster’s problem, but it isn’t really, as you are not using WP-Table Reloaded on your site.

    Instead, this seems to be a theme issue, which you can try to confirm by temporarily switching to the WordPress default theme TwentyTwelve. Then it might be a good idea to contact the theme author about this, or ask again in the theme forums.

    Regards,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Table not recognizing line breaks’ is closed to new replies.