gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

<br> tags in custom html

Open Aljnk opened this issue 8 years ago • 5 comments

I use my own theme for wordpress website. My html code written in theme files has extra tag <br> in many different places, when I activate Gutenberg plugin.

How can I switch off this <br> adding by Gutenberg plugin (AT ALL)?

3

  • Windows 10 - Google Chrome, Opera, Firefox
  • Gutenberg Version 3.9.0 (and <3.9.0).

Aljnk avatar Sep 01 '18 09:09 Aljnk

I've noticed that when you add HTML code, Gutenberg inserts a br tag before the code block, and two br tags after the code block.

See similar issue: https://github.com/WordPress/gutenberg/issues/5872

bkyam avatar Sep 24 '18 18:09 bkyam

I'm not using Gutenberg at all - It just activated. This code inside "THEME" php files.

Aljnk avatar Sep 25 '18 04:09 Aljnk

Version 4.5.1 - Same Problem!

Aljnk avatar Nov 25 '18 07:11 Aljnk

@Aljnk I noticed that an update was made to formatting whitespaces in https://github.com/WordPress/gutenberg/pull/12166 in Gutenberg 4.7, and I was wondering if you are still having trouble with this if you update to the latest version of WordPress (the plugin is no longer needed).

The description about browser behavior in https://github.com/WordPress/gutenberg/issues/5872#issuecomment-441008535 may also be relevant here.

designsimply avatar Jan 17 '19 21:01 designsimply

Now Everything is Good - Thanks!

Aljnk avatar Jan 18 '19 07:01 Aljnk