• Resolved mravat

    (@rosso711)


    Hi,

    I am importing a table from an HTML file.

    I see that despite the br i have in the html file to separate the contents of the cells, plugin adds an extra br, leaving this way more space than necessary (double space).

    How can i prevent this please?

    THank you so much in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    To clarify: Are you actually seeing two <br /> tags when now editing the table in TablePress? Or is it one <br /> tag and a normal line break? The latter should be the standard here, and that would lead to the line break being converted to a <br /> tag later as well (again standard behavior). (You could turn that off by adding the convert_line_break=false parameter to the table Shortcode on the page where you embedded it.)

    If the first case is what’s happening: Can you maybe email me that HTML file (or the link to it, if you used the URL import method) as well as a JSON file of the table after exporting it again from TablePress? That way, I can test this more thoroughly and maybe find a way to make this import work in the future. Please find my email address on https://tablepress.org/impressum/

    Regards,
    Tobias`

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for sending me the file!

    Indeed, as described above, the import is working as expected here. It’s the data processing afterwards that’s adding these extra line breaks.

    To adjust that, please use this modified Shortcode on the page:

    [table id=1 convert_line_breaks=false /]
    

    Regards,
    Tobias

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML import adds extra br’ is closed to new replies.