I am coding in Python. I have a bunch of huge multi line strings:
str = """Hello: {}
Lorem ipsum dolor sit ame.
Consectetur adipiscing elit.
Age: {}
Suspendisse turpis orci.
Aliquam eu odio nec.
condimentum vestibulum nibh.
Vivamus eget hendrerit urna.
Value:{}""".format("Name","6","Something")
It worked as expected.
Then I tried the real goal:
ModdedLayoutTemp = """<!DOCTYPE html>
<html>
<head>
<meta charset="uft-8">
<title>{}</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<style>
::-webkit-scrollbar {
/*display: none;*/
}
#Page {
height: 100vh;
width: 100vw;
background-color: {};
background-size: 100vw 100vh;
position: fixed;
bottom: 0;
right: 0;
}
html {
height: 110vh;
}
</style>
</head>
<body>
<script src="/static/viewPortScript.js"></script>
{% block body %}
{% endblock %}
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"/>
</body>
</html>
""".format("Title To Web","#ff6600")
print(ModdedLayoutTemp)
This time I got a error:
""".format("Title To Web","#ff6600")
KeyError: ' \n /*display'
I have no clue why I got that error. The code is a string like the other. Does anyone have an idea of whats going wrong?