astro-community / xelement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`class` values with a linebreak inside causes error.

jackmerrill opened this issue · comments

Example:

  <Button @click={(event, store)=> {
    store.data.push('test')
    }}
    class="px-3 py-2 w-full mt-1 bg-indigo-500 rounded-md hover:bg-indigo-600 transition-colors duration-150 text-white
    font-semibold">
    Add
  </Button>

Does not work, this does:

  <Button @click={(event, store)=> {
    store.data.push('test')
    }}
    class="px-3 py-2 w-full mt-1 bg-indigo-500 rounded-md hover:bg-indigo-600 transition-colors duration-150 text-white font-semibold">
    Add
  </Button>

Error in question:
ERROR: Unterminated string literal