@@ -66,9 +66,8 @@ Elm.Native.Text.make = function(elm) {
6666 }
6767 function toLine(line) {
6868 var ctor = line.ctor;
69− var decoration = ctor === 'Under' ? 'underline' :
70− ctor === 'Over' ? 'overline' : 'line-through';
71− return 'text-decoration:' + decoration + ';';
69+ return ctor === 'Under' ? 'underline' :
70+ ctor === 'Over' ? 'overline' : 'line-through';
7271 }
7372
7473 // setting styles of Text
@@ -87,7 +86,7 @@ Elm.Native.Text.make = function(elm) {
8786 newText += 'font-style:italic;';
8887 }
8988 if (style.line.ctor !== 'Nothing') {
90− newText += toLine(style.line._0);
89+ newText += 'text-decoration:' + toLine(style.line._0) + ';';
9190 }
9291 newText += '">' + Utils.makeText(text) + '</span>'
9392 return Utils.txt(newText);
@@ -111,7 +110,7 @@ Elm.Native.Text.make = function(elm) {
111110 return { href: toText(href), text:text };
112111 }
113112 function line(line, text) {
114− return { style: toLine(line), text:text };
113+ return { style: 'text-decoration:' + toLine(line) + ';', text:text };
115114 }
116115
117116 function color(color, text) {
@@ -161,5 +160,8 @@ Elm.Native.Text.make = function(elm) {
161160 centered : block('center'),
162161 justified : block('justify'),
163162 markdown : markdown,
163+
164+ toTypefaces:toTypefaces,
165+ toLine:toLine,
164166 };
165167};