           end
 
     spaces = %{}
-    if parts["leading_space"] != "", do: spaces = Dict.put(spaces, :leading, true)
-    if parts["trailing_space"] != "", do: spaces = Dict.put(spaces, :trailing, true)
+    spaces = if parts["leading_space"] != "", do: Dict.put(spaces, :leading, true), else: spaces
+    spaces = if parts["trailing_space"] != "", do: Dict.put(spaces, :trailing, true), else: spaces
 
     case Regex.named_captures(@id_regex, parts["css"]) do
       nil ->


        parse_tag = fn (tag) -> tag |> String.first |> parse_line(tag) end
        tag = parse_tag.(tag)
        if inline_tag do
          inline_tag = parse_tag.(inline_tag)
          {tag_name, attrs} = tag
          tag = {tag_name, [{:children, [inline_tag]} | attrs]}
        end

        {indentation, tag}

        text_indent = String.length(text_indent)
        {text_lines, rest} = parse_verbatim_text(indent, text_indent, head, tail)
        text = Enum.join(text_lines, "\n")
        text = if text_type == @preserved, do: text <> " ", else: text
        {{indent, parse_eex_string(text)}, rest}
    end
  end

  defp parse_verbatim_text(indent, text_indent, head, tail) do
    text_indent = if String.length(head) == text_indent, do: text_indent + 1, else: text_indent
    {_, head_text} = String.split_at(head, text_indent)
    {text_lines, rest} = Enum.split_while(tail, fn (line) ->
      {line_indent, _} = strip_line(line)
