* Revert "Add html5 doctype to static renderer (#486)"
This reverts commit 3081f5521a
which causes failing layout snapshots we've recently turned back on in https://github.com/TokamakUI/Tokamak/pull/484.
* Fix newlines inconsistency
This commit is contained in:
parent
3081f5521a
commit
a604ef5269
|
@ -88,11 +88,11 @@ public final class StaticHTMLRenderer: Renderer {
|
||||||
|
|
||||||
public func render(shouldSortAttributes: Bool = false) -> String {
|
public func render(shouldSortAttributes: Bool = false) -> String {
|
||||||
"""
|
"""
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>\(title)</title>
|
<title>\(title)</title>\(
|
||||||
\(meta.map { $0.outerHTML() }.joined(separator: "\n "))
|
!meta.isEmpty ? "\n " + meta.map { $0.outerHTML() }.joined(separator: "\n ") : ""
|
||||||
|
)
|
||||||
<style>
|
<style>
|
||||||
\(tokamakStyles)
|
\(tokamakStyles)
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tokamak 2</title>
|
<title>Tokamak 2</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tokamak 2</title>
|
<title>Tokamak 2</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tokamak 3</title>
|
<title>Tokamak 3</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tokamak</title>
|
<title>Tokamak</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Tokamak</title>
|
<title>Tokamak</title>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
._tokamak-stack {
|
._tokamak-stack {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
Loading…
Reference in New Issue