aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@users.noreply.github.com>2019-06-26 11:06:29 +0200
committerGitHub <noreply@github.com>2019-06-26 11:06:29 +0200
commit4895cd4698bdcdcd6b39c728a5952ecba45fb5cf (patch)
tree91497a3e32c8b4281fe0acebb9828cbc25cc3d07
parent9c914beef971705fab6711d54747136f38c02c69 (diff)
parente07e8648d33d906b3354952bd84b61583622894c (diff)
downloadkvision-4895cd4698bdcdcd6b39c728a5952ecba45fb5cf.tar.gz
kvision-4895cd4698bdcdcd6b39c728a5952ecba45fb5cf.tar.bz2
kvision-4895cd4698bdcdcd6b39c728a5952ecba45fb5cf.zip
Merge pull request #61 from robert-cronin/master
Add <br> tag to enum
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/core/StyledComponent.kt2
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/html/Tag.kt1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/core/StyledComponent.kt b/src/main/kotlin/pl/treksoft/kvision/core/StyledComponent.kt
index d9fa63fc..d5baf309 100644
--- a/src/main/kotlin/pl/treksoft/kvision/core/StyledComponent.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/core/StyledComponent.kt
@@ -448,7 +448,7 @@ abstract class StyledComponent {
snstyle.add("unicode-bidi" to it.unicodeBidi)
}
verticalAlign?.let {
- snstyle.add("vartical-align" to it.verticalAlign)
+ snstyle.add("vertical-align" to it.verticalAlign)
}
whiteSpace?.let {
snstyle.add("white-space" to it.whiteSpace)
diff --git a/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt b/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt
index 68e43da0..512ca8b8 100644
--- a/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/html/Tag.kt
@@ -70,6 +70,7 @@ enum class TAG(internal val tagName: String) {
SPAN("span"),
LI("li"),
HR("hr"),
+ BR("br"),
CAPTION("caption"),
THEAD("thead"),