garden

2017-09-15T00:25:56.000141Z

I'm having some issues with garden parsing some content fields, specifically errors with some of the entities/glyph codes e.g. "\039F". Is there something special I need to do or is this not possible?

niamu 2017-09-15T06:49:53.000231Z

@dfcarpenter Do you have a sample of the code you’ve tried? I can help try to work out a solution.

2017-09-15T16:19:47.000289Z

`

[:li.progtrckr-todo {:color "silver"
                        :border-bottom "4px solid silver"}
    [:&:before {:content "\039F"
                :color "silver"
                :background-color "#fff"
                :width (em 1.2)
                :line-height (em 1.4)}]
    [:&:hover:before {:color "#ff4500"}]]

`

2017-09-15T16:20:17.000569Z

Error: java.lang.IllegalArgumentException: Invalid digit: 9, compiling:(frontend/wizard.clj:32:31)

2017-09-15T16:42:17.000369Z

@dfcarpenter “\039f” isn’t a valid character string. IIRC, the “\0" prefix means octal notation, which can only have digits 0-7. Maybe you meant “\u039f”?

2017-09-15T16:43:45.000172Z

I was looking at this

2017-09-15T16:44:15.000592Z

`
p:before { content:"\039f"; }
`

2017-09-15T16:44:20.000125Z

It has that example for a micron

2017-09-15T16:48:24.000532Z

Ah, my guess would be that the string works in straight CSS, but since you’re using garden, it starts out being a Java string and gets interpreted under Java rules.

2017-09-15T16:48:46.000060Z

So to translate it to Java, add the “u” after the “\”

2017-09-15T16:48:55.000093Z

ahh yes. I tried that and it worked

2017-09-15T16:48:58.000334Z

Thank you

2017-09-15T16:49:03.000090Z

:thumbsup:

2017-09-15T16:50:07.000498Z

An unrelated question have you used garden 2.0? Is it worth switching to?

2017-09-15T17:44:28.000147Z

Not me, no. I’m lurking here because I’ve always been interested in the premise of garden, but I never really got around to using it “in anger”.