搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Issue with multiple line breaks happening for every newline

  • 2 个回答
  • 0 人有此问题
  • 7 次查看
  • 最后回复者为 cor-el

more options

I've got an issue on several websites in 115b2 (but it's been an issue since at least 112) where Firefox inserts a bunch of
after a single newline. I've tried toggling editor.use_div_for_default_newlines, which had fixed this back in 92 when set to false. But now, true or false, I'm getting a bunch of line breaks when I'm not expecting them. This is only an issue in Firefox, Chrome/Edge does not have this behavior when using WYSIWYG editors. I can go back into the editor and clean out the additional line breaks without them being resubmitted, though.

example, there should only be a single line break between "message" and "more message":

message.


more message

I've got an issue on several websites in 115b2 (but it's been an issue since at least 112) where Firefox inserts a bunch of <br> after a single newline. I've tried toggling editor.use_div_for_default_newlines, which had fixed this back in 92 when set to false. But now, true or false, I'm getting a bunch of line breaks when I'm not expecting them. This is only an issue in Firefox, Chrome/Edge does not have this behavior when using WYSIWYG editors. I can go back into the editor and clean out the additional line breaks without them being resubmitted, though. example, there should only be a single line break between "message" and "more message": <div id="post_message_6522511"> message.<br> <br> <br> more message </div>

所有回复 (2)

more options

Sigh. I didn't know the support board would literally translate my html, sorry for the double entry:

I've got an issue on several websites in 115b2 (but it's been an issue since at least 112) where Firefox inserts a bunch of /br> after a single newline. I've tried toggling editor.use_div_for_default_newlines, which had fixed this back in 92 when set to false. But now, true or false, I'm getting a bunch of line breaks when I'm not expecting them. This is only an issue in Firefox, Chrome/Edge does not have this behavior when using WYSIWYG editors. I can go back into the editor and clean out the additional line breaks without them being resubmitted, though.

example, there should only be a single line break between "message" and "more message": /div id="post_message_6522511"> message/br> /br> /br> more message //div>

more options

The editor.use_div_for_default_newlines pref is no longer supported in 112 and newer and this setting now defaults to opening a new DIV when you press the Enter key. To get a line break (LF), you need to use Shift + Enter like also works in the developer tools (Web Console) to enter multiple lines via the command line (Enter works as an execute).