Diff
diff --git a/docs/cstyle/plugins/inline/index.html b/docs/cstyle/plugins/inline/index.html
index 1eb51b7..4548363 100644
--- a/docs/cstyle/plugins/inline/index.html
+++ b/docs/cstyle/plugins/inline/index.html
@@ -47,58 +47,64 @@
-21 for i, v := range n.Parent.Children {
-22 vState := s[v.Properties.Id]
-23 if v.Style["display"] != "inline" {
-24 xCollect = 0
-25 } else {
-26 if v.Properties.Id == n.Properties.Id {
-27 if self.X+xCollect+self.Width > ((parent.Width-parent.Padding.Left)+parent.Padding.Right)+parent.X && i > 0 {
-28 // Break Node
-29 sibling := s[n.Parent.Children[i-1].Properties.Id]
-30 self.Y += sibling.Height
-31 self.X = copyOfX
-32 } else if i > 0 {
-33 // Node did not break
-34 self.X += xCollect
-35 // sibling := s[n.Parent.Children[i-1].Properties.Id]
-36 // if sibling.Height != self.Height {
-37 // self.Y += sibling.Height / 4
-38 // }
-39 }
-40 self.X += parent.Padding.Left
-41 break
-42 } else {
-43 if n.Parent.Children[i].Style["display"] == "inline" {
-44 if colliderDetection(vState, self) {
-45 xCollect += vState.Width
-46 } else {
-47 xCollect = 0
-48 }
-49 }
-50 }
-51 }
-52 }
-53 propagateOffsets(n, copyOfX, copyOfY, self, state)
-54 (*state)[n.Properties.Id] = self
-55 },
-56 }
-57}
-58
-59func propagateOffsets(n *element.Node, copyOfX, copyOfY float32, self element.State, state *map[string]element.State) {
-60 s := *state
-61 for _, v := range n.Children {
-62 vState := s[v.Properties.Id]
-63 vState.X += self.X - copyOfX
-64 vState.Y += self.Y - copyOfY
-65 if len(v.Children) > 0 {
-66 propagateOffsets(&v, copyOfX, copyOfY, self, state)
-67 }
-68 (*state)[v.Properties.Id] = vState
-69 }
-70}
-71
-72func colliderDetection(s1, s2 element.State) bool {
-73 s1Min := s1.Y
-74 s1Max := s1.Y + s1.Height
-75 s2Min := s2.Y
-76 s2Max := s2.Y + s2.Height
-77 return s1Min > s2Min && s1Min < s2Max || s1Max > s2Min && s1Min < s2Max || s2Min > s1Min && s2Min < s1Max || s2Max > s1Min && s2Min < s1Max
-78}
+21 // !ISSUE: Text doesn't break word
+22 for i, v := range n.Parent.Children {
+23 vState := s[v.Properties.Id]
+24 if v.Style["display"] != "inline" {
+25 xCollect = 0
+26 } else {
+27 if v.Properties.Id == n.Properties.Id {
+28 // then if the x coordinate of the current element plus the x shift from its prevous siblings and the width minus 2 pixels
+29 // is greater than the width of the parent plus it's x value
+30 // and it is not the first element
+31 if self.X+xCollect+self.Width > parent.Width+parent.X && i > 0 {
+32 // We need to shift the element
+33 // then find the prevous sibling and add its height to the Y value to shift it downwards
+34 // shift the element to the base x (which should be the parent x value) and reset the xCollect
+35 // fmt.Println(n.Properties.Id, "broke", xCollect, self.X, self.Width, parent.Width, parent.X)
+36 sibling := s[n.Parent.Children[i-1].Properties.Id]
+37 self.Y += sibling.Height
+38 self.X = copyOfX
+39 } else if i > 0 {
+40 // fmt.Println(n.Properties.Id, n.InnerText, "did not break", xCollect, self.X, self.Width, parent.Width)
+41 self.X += xCollect
+42 sibling := s[n.Parent.Children[i-1].Properties.Id]
+43 if sibling.Height != self.Height {
+44 self.Y += sibling.Height / 4
+45 }
+46 }
+47 break
+48 } else {
+49 if n.Parent.Children[i].Style["display"] == "inline" {
+50 if colliderDetection(vState, self) {
+51 xCollect += vState.Width
+52 } else {
+53 xCollect = 0
+54 }
+55 }
+56 }
+57 }
+58 }
+59 propagateOffsets(n, copyOfX, copyOfY, self, state)
+60 (*state)[n.Properties.Id] = self
+61 },
+62 }
+63}
+64
+65func propagateOffsets(n *element.Node, copyOfX, copyOfY float32, self element.State, state *map[string]element.State) {
+66 s := *state
+67 for _, v := range n.Children {
+68 vState := s[v.Properties.Id]
+69 vState.X += self.X - copyOfX
+70 vState.Y += self.Y - copyOfY
+71 if len(v.Children) > 0 {
+72 propagateOffsets(&v, copyOfX, copyOfY, self, state)
+73 }
+74 (*state)[v.Properties.Id] = vState
+75 }
+76}
+77
+78func colliderDetection(s1, s2 element.State) bool {
+79 s1Min := s1.Y
+80 s1Max := s1.Y + s1.Height
+81 s2Min := s2.Y
+82 s2Max := s2.Y + s2.Height
+83 return s1Min > s2Min && s1Min < s2Max || s1Max > s2Min && s1Min < s2Max || s2Min > s1Min && s2Min < s1Max || s2Max > s1Min && s2Min < s1Max
+84}