Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#52890 closed defect (bug) (invalid)

How can I prevent <form> tags from automatically inserting <p> tags.

Reported by: rosener's profile rosener Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Formatting Keywords:
Focuses: Cc:

Description

I believe after installing the latest version of WordPress 5.7
HTML opening <form> tags and HTML closing </form> tags
are inserting paragraphs breaks as shown in the attached screen
capture.

From:

<form

To:

<form

<p>

::before

</p>

How can I remove this extra information??

Thanks,
Bill

Attachments (1)

extra-spaces.png (69.9 KB) - added by rosener 4 years ago.

Download all attachments as: .zip

Change History (4)

@rosener
4 years ago

#1 @rosener
4 years ago

If I misspell "<form " to </fform " these extra paragraph tags do not appear.

#2 @sabernhardt
4 years ago

  • Component changed from General to Formatting
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @rosener!

The support forums are better for individual site help.
https://wordpress.org/support/

In this case, however, the extra paragraph tags seem to go away by removing the <center> (and </center>) tags. Then to align the content of each div, you could add text-align: center;:

<div style="padding:0 10px 15px 0; float:left; text-align: center;">

#3 @rosener
4 years ago

While it will take me some time to implement this on all my pages, your solution works. Thanks, Bill

Note: See TracTickets for help on using tickets.