xml-hamlet: Self-closing tags don't parse correctly.
YellowOnion opened this issue · 3 comments
YellowOnion commented
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?
snoyberg commented
This is part of Hamlet syntax, no form of close tags is supported. It would
be better if this was a parse error, but the syntax is intentionally
unsupported.
…On Mon, Aug 21, 2017, 8:13 AM YellowOnion ***@***.***> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#110>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADBByYj3VqYYAschCO_NRpbrBAdbaW1ks5saRH2gaJpZM4O844T>
.
YellowOnion commented
Ahh thanks for reply, I totally missed the lack of use of closing tags, my brain filled in the gaps.
snoyberg commented
No problem