snoyberg/xml

xml-hamlet: Self-closing tags don't parse correctly.

YellowOnion opened this issue · 3 comments

func col coll = [xml|
        <Button xmlns:android="http://schemas.android.com/apk/res/android"
            android:text="#{pack $ [toUpper col]}"
            android:layout_width="35dp"
            android:layout_height="wrap_content"
            android:id="#{coll}" />
|]

Outputs:

<Button 
        /=""
        android:id="@+id/button_q"
        android:layout_height="wrap_content"
        android:layout_width="35dp"
        android:text="Q"
        xmlns:android="http://schemas.android.com/apk/res/android"/>

Where is line 2 coming from?

Ahh thanks for reply, I totally missed the lack of use of closing tags, my brain filled in the gaps.

No problem