git.iko.soy/typeable/elm-ui
on master help sign in
No implicit spaces in paragraphs.
commitdee2fda170c2531b03f0f3becb4a1a87d0433afe authorMatthew Griffith <mdg.griffith@gmail.com> dateMon 17 Sep 2018, 21:20 (8 years ago) parent192acf6
1 file changed+5−15
src/Internal/Model.elm+5−15
src/Internal/Model.elm+5−15
@@ -1488,7 +1488,7 @@ createElement context children rendered =
14881488 -- Same if it's a column or row with one child and width-content, height-content
14891489 -- interferes with css grid
14901490 -- 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.
14921492 -- I don't think that's what we want.
14931493 if
14941494 context
@@ -1498,7 +1498,7 @@ createElement context children rendered =
14981498 then
14991499 ( VirtualDom.text
15001500 (if context == asParagraph then
1501− str ++ " "
1501+ str
15021502
15031503 else
15041504 str
@@ -1510,7 +1510,7 @@ createElement context children rendered =
15101510 else
15111511 ( textElement
15121512 (if context == asParagraph then
1513− str ++ " "
1513+ str
15141514
15151515 else
15161516 str
@@ -1567,12 +1567,7 @@ createElement context children rendered =
15671567 then
15681568 ( ( key
15691569 , VirtualDom.text
1570− (if context == asParagraph then
1571− str ++ " "
1572−
1573− else
1574− str
1575− )
1570+ str
15761571 )
15771572 :: htmls
15781573 , existingStyles
@@ -1581,12 +1576,7 @@ createElement context children rendered =
15811576 else
15821577 ( ( key
15831578 , textElement
1584− (if context == asParagraph then
1585− str ++ " "
1586−
1587− else
1588− str
1589− )
1579+ str
15901580 )
15911581 :: htmls
15921582 , existingStyles