Skip to content

Empty paragraphs <p> not being displayed #24

@mjefim

Description

@mjefim

Hi, I am trying to render html that contains empty paragraphs to provide some spacing in the text. The issue is that if the paragraphs are empty the output does not seem to contain them. I am attaching the test html and a screenshot of the output (please ignore the yellow masking, it just hides other information).

Image of the output:
image

HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
      <style>
          body {  font-family:Calibri;
          }
          p {  margin-bottom: 15px;
          }
      </style>
  </head>
  <body>
    <p>Testing the empty paragraphs for spacing.</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>two empty paragraphs before this</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>three empty paragraphs before this</p>
  </body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions