pressbooks-book icon indicating copy to clipboard operation
pressbooks-book copied to clipboard

Automatic <p> tags after first paragraph in table cells with multiple paragraphs

Open tw77 opened this issue 3 years ago • 3 comments

Description

In a standard (not Tablepress) table cell containing multiple paragraphs, the first paragraph is given a default, appropriate font unless specified. It is not automatically placed within <p> tags. All subsequent paragraphs, however, are automatically placed within <p> tags in the webbook output. This happens without any user intervention in the Text editor, and it gives additional paragraphs a different, unexpected font:

Code in Text editor texteditor

Appearance in webbook cell

Webbook HTML inspect

This seems to happen regardless of the book's Theme (tested with McLuhan, Malala, Adunis, Andreessen).

A cumbersome workaround is to place every paragraph in a table within appropriately styled <p> tags. The default <p> tags are likely not hoped for in the context of a multi-paragraph table cell. Their automatic inclusion from the second paragraph onwards is experienced as a bug.

Steps to Reproduce

  1. In a book chapter, create a table with at least one cell.
  2. Write two or more paragraphs within that cell with no particular styling.
  3. Preview or save and view the chapter.

Expected behavior: All paragraphs have the same, appropriate font.

Actual behavior: All paragraphs after the first paragraph have a different, larger font.

tw77 avatar Jan 24 '22 17:01 tw77

This is affecting another client here: https://pressbooks.zendesk.com/agent/tickets/9399

tw77 avatar Mar 01 '22 22:03 tw77

Desired behaviour:

  1. all content inside td elements is treated the same way (wrapped in a p element)
  2. we appropriately target td p elements to display the way we want td content to display now

SteelWagstaff avatar Mar 02 '22 15:03 SteelWagstaff

This is affecting another client here: https://pressbooks.zendesk.com/agent/tickets/13182

jocelynpb2 avatar Nov 03 '22 16:11 jocelynpb2