aboutsummaryrefslogtreecommitdiff
path: root/formatter/formatter.go
Commit message (Collapse)AuthorAgeFilesLines
* Remove whitespaceThomas Voss 2023-10-021-2/+0
|
* Fix class/attribute mixup bugjturtle 2023-10-021-1/+4
| | | | | | | | | | | | | | | | | | There's a bug in the current version of GSP where an element like this: p .class attribute="value" {-} would be transpiled as this: <p class="value" attribute="value"></p> The `classes` slice in `func printAttrs` (`formatter.go`, line 50) was the cause. I fixed it by making a deep copy of the `attrs` slice. I'm not a Go programmer, there might be a nicer way to make a deep copy of a slice. But it does, indeed, work. P.S. thanks for making this, writing HTML by hand is now slightly less painful!
* Run ‘go fmt’Thomas Voss 2023-09-111-9/+9
|
* Add the ‘=’ node for whitespace trimmingThomas Voss 2023-09-111-0/+8
|
* Add the ‘>’ node modifierThomas Voss 2023-09-111-0/+4
|
* Fix a panicThomas Voss 2023-09-101-1/+1
|
* Remove all XML supportThomas Voss 2023-09-101-22/+2
|
* Rework some of the formatting- and parsing codeThomas Voss 2023-09-101-79/+88
|
* Add primitive support for doctypes and XMLThomas Voss 2023-09-091-14/+41
|
* Fix bug when key has no valueThomas Voss 2023-09-091-1/+1
|
* Consistent code styleThomas Voss 2023-09-091-1/+1
|
* Genesis commitThomas Voss 2023-09-081-0/+104