git.iko.soy/typeable/elm-ui
on master help sign in
No implicit spaces in paragraphs.
dee2fdaMatthew Griffith
src/Internal/Model.elm+5−15
@@ -1488,7 +1488,7 @@ createElement context children rendered =
1488 -- Same if it's a column or row with one child and width-content, height-content
1488 -- Same if it's a column or row with one child and width-content, height-content
1489 -- interferes with css grid
1489 -- interferes with css grid
1490 -- Maybe we could unpack text elements in a paragraph as well,
1490 -- Maybe we could unpack text elements in a paragraph as well,
1491− -- however embedded style elements that are larger than the line height will overlap with exisitng text.
1491+ -- however, embedded elements that are larger than the line height will overlap with exisitng text.
1492 -- I don't think that's what we want.
1492 -- I don't think that's what we want.
1493 if
1493 if
1494 context
1494 context
@@ -1498,7 +1498,7 @@ createElement context children rendered =
1498 then
1498 then
1499 ( VirtualDom.text
1499 ( VirtualDom.text
1500 (if context == asParagraph then
1500 (if context == asParagraph then
1501− str ++ " "
1501+ str
1502
1502
1503 else
1503 else
1504 str
1504 str
@@ -1510,7 +1510,7 @@ createElement context children rendered =
1510 else
1510 else
1511 ( textElement
1511 ( textElement
1512 (if context == asParagraph then
1512 (if context == asParagraph then
1513− str ++ " "
1513+ str
1514
1514
1515 else
1515 else
1516 str
1516 str
@@ -1567,12 +1567,7 @@ createElement context children rendered =
1567 then
1567 then
1568 ( ( key
1568 ( ( key
1569 , VirtualDom.text
1569 , VirtualDom.text
1570− (if context == asParagraph then
1571− str ++ " "
1572−
1573− else
1574− str
1570+ str
1575− )
1576 )
1571 )
1577 :: htmls
1572 :: htmls
1578 , existingStyles
1573 , existingStyles
@@ -1581,12 +1576,7 @@ createElement context children rendered =
1581 else
1576 else
1582 ( ( key
1577 ( ( key
1583 , textElement
1578 , textElement
1584− (if context == asParagraph then
1585− str ++ " "
1586−
1587− else
1588− str
1579+ str
1589− )
1590 )
1580 )
1591 :: htmls
1581 :: htmls
1592 , existingStyles
1582 , existingStyles