Skip to content

Commit

Permalink
Fix the attribute rendering (#41)
Browse files Browse the repository at this point in the history
* Fix the rendering of the attributes accordingly the issue #39

* Clean up the HTMLKitTests

* Add LinuxMain again. It seems to be needed for Lingo.

* Change the test content

* Remove the Select element from the ElementTests

* Add allTests to every test and to LinuxMain
  • Loading branch information
mattesmohr authored Oct 24, 2021
1 parent 14e18c3 commit 58db8cd
Show file tree
Hide file tree
Showing 10 changed files with 2,053 additions and 1,548 deletions.
4 changes: 2 additions & 2 deletions Sources/HTMLKit/Internal/HTMLAttribute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension HTMLAttribute: HTMLContent {
try IF(isIncluded) {
attribute
IF(value != nil) {
"='" + (value ?? "") + "'"
"=\"" + (value ?? "") + "\""
}
}.render(with: manager)
}
Expand All @@ -38,7 +38,7 @@ extension HTMLAttribute: HTMLContent {
try IF(isIncluded) {
attribute
IF(value != nil) {
"='" + (value ?? "") + "'"
"=\"" + (value ?? "") + "\""
}
}.prerender(formula)
}
Expand Down
Loading

0 comments on commit 58db8cd

Please sign in to comment.