From 7fc2f418e639c1920c731524a142a07c17a400da Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Wed, 29 May 2024 17:07:31 -0400 Subject: Disallow breaking on rb tags when layout aware scanning is enabled (#1006) * Disallow breaking on rb tags when layout aware scanning is enabled * Mark RB as enterable --- ext/js/dom/dom-text-scanner.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/js/dom/dom-text-scanner.js b/ext/js/dom/dom-text-scanner.js index b86d6586..eb56baf9 100644 --- a/ext/js/dom/dom-text-scanner.js +++ b/ext/js/dom/dom-text-scanner.js @@ -421,6 +421,8 @@ export class DOMTextScanner { case 'SCRIPT': case 'STYLE': return {enterable: false, newlines: 0}; + case 'RB': + return {enterable: true, newlines: 0}; case 'BR': return {enterable: false, newlines: 1}; case 'TEXTAREA': -- cgit v1.2.3