!DOCTYPE on same indentation level

This commit is contained in:
Bram van Neerven 2022-08-28 01:02:29 +02:00
parent 2f95c664a4
commit 284eda781b
No known key found for this signature in database
GPG Key ID: 0DFD87C5611B4768

View File

@ -66,7 +66,7 @@ impl<'a> GraphiQLSource<'a> {
}; };
r#" r#"
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> <style>
@ -113,7 +113,7 @@ impl<'a> GraphiQLSource<'a> {
</script> </script>
</body> </body>
</html> </html>
"# "#
.replace("%GRAPHIQL_URL%", &graphiql_url) .replace("%GRAPHIQL_URL%", &graphiql_url)
.replace("%GRAPHIQL_SUBSCRIPTION_URL%", &graphiql_subscription_url) .replace("%GRAPHIQL_SUBSCRIPTION_URL%", &graphiql_subscription_url)
.replace("%GRAPHIQL_HEADERS%", &graphiql_headers) .replace("%GRAPHIQL_HEADERS%", &graphiql_headers)
@ -133,7 +133,7 @@ mod tests {
assert_eq!( assert_eq!(
graphiql_source, graphiql_source,
r#" r#"
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> <style>
@ -180,7 +180,7 @@ mod tests {
</script> </script>
</body> </body>
</html> </html>
"# "#
) )
} }
@ -194,7 +194,7 @@ mod tests {
assert_eq!( assert_eq!(
graphiql_source, graphiql_source,
r#" r#"
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> <style>
@ -241,7 +241,7 @@ mod tests {
</script> </script>
</body> </body>
</html> </html>
"# "#
) )
} }
@ -256,7 +256,7 @@ mod tests {
assert_eq!( assert_eq!(
graphiql_source, graphiql_source,
r#" r#"
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<style> <style>
@ -303,7 +303,7 @@ mod tests {
</script> </script>
</body> </body>
</html> </html>
"# "#
) )
} }
} }