diff --git a/js2/semantics/HTML.lisp b/js2/semantics/HTML.lisp
index f04d329cde0d..2c7d4723bc7c 100644
--- a/js2/semantics/HTML.lisp
+++ b/js2/semantics/HTML.lisp
@@ -396,6 +396,7 @@
'(((:new-line t) (br))
;Misc.
+ ((:nbsp 1) nbsp)
(:tab2 nbsp nbsp)
(:tab3 nbsp nbsp nbsp)
(:nbhy "-") ;Non-breaking hyphen
@@ -516,8 +517,8 @@
((:but-not 6) (b "except"))
((:begin-negative-lookahead 13) "[lookahead" :not-member-10 "{")
((:end-negative-lookahead 2) "}]")
- ((:line-break 12) "[line" nbsp "break]")
- ((:no-line-break 15) "[no" nbsp "line" nbsp "break]")
+ ((:line-break 12) "[line" :nbsp "break]")
+ ((:no-line-break 15) "[no" :nbsp "line" :nbsp "break]")
(:subscript sub)
(:superscript sup)
((:action-begin 1) "[")
diff --git a/js2/semantics/RTF.lisp b/js2/semantics/RTF.lisp
index cd3ab739bf0b..b6aa545267d3 100644
--- a/js2/semantics/RTF.lisp
+++ b/js2/semantics/RTF.lisp
@@ -97,6 +97,7 @@
;Misc.
(:space " ")
+ (:nbsp ~)
(:tab2 tab)
(:tab3 tab)
(:nbhy _) ;Non-breaking hyphen
@@ -465,8 +466,8 @@
((:but-not 6) (b "except"))
((:begin-negative-lookahead 13) "[lookahead" :not-member-10 "{")
((:end-negative-lookahead 2) "}]")
- ((:line-break 12) "[line" ~ "break]")
- ((:no-line-break 15) "[no" ~ "line" ~ "break]")
+ ((:line-break 12) "[line" :nbsp "break]")
+ ((:no-line-break 15) "[no" :nbsp "line" :nbsp "break]")
(:subscript sub)
(:superscript super)
((:action-begin 1) "[")