We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a7325 commit e7e3f18Copy full SHA for e7e3f18
src/elements/Spacer.js
@@ -4,6 +4,18 @@
4
5
import {Element} from '../element.js';
6
7
+export function Space() {
8
+ return new NonBreakingSpace();
9
+}
10
+
11
+class NonBreakingSpace extends Element {
12
+ constructor() {
13
+ const element = document.createTextNode(' ');
14
+ super(element);
15
+ this.element = element;
16
+ }
17
18
19
export function Spacer(times = 1) {
20
return new BreakTag(times);
21
}
0 commit comments