Skip to content

Commit

Permalink
Merge pull request #36 from teknologi-umum/fix/hhh
Browse files Browse the repository at this point in the history
fix: wrong height, for real this time
  • Loading branch information
Reinaldy Rafli committed Nov 29, 2021
2 parents 40cc5d6 + 790cdc7 commit d59aa3c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions views/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@
<meta http-equiv="Page-Exit" content="RevealTrans(Duration=1.0,Transition=1)" />
<style>
* { padding: 0; margin: 0; box-sizing: border-box; }
html, body, pre {
html, body {
width: 100%;
min-height: 100%;
height: 100%;
}
pre {
min-height: 100%;
white-space: pre-wrap;
word-wrap: break-word;
padding: 0.75rem;
Expand All @@ -94,7 +95,10 @@
</style>
</head>
<body>
{{unescape .Highlighted}}
<pre class="normal">{{.Content}}</pre>
{{ if (ne .Highlighted "") }}
{{unescape .Highlighted}}
{{ else }}
<pre class="normal">{{.Content}}</pre>
{{ end }}
</body>
</html>

0 comments on commit d59aa3c

Please sign in to comment.