cinera.c: Add <div> to match closing </div>

This commit is contained in:
Matt Mascarenhas 2020-05-10 18:43:40 +01:00
parent 18b39b9f72
commit 3e0ba0b77b
1 changed files with 4 additions and 5 deletions

View File

@ -17,7 +17,7 @@ typedef struct
version CINERA_APP_VERSION = { version CINERA_APP_VERSION = {
.Major = 0, .Major = 0,
.Minor = 7, .Minor = 7,
.Patch = 4 .Patch = 5
}; };
#include <stdarg.h> // NOTE(matt): varargs #include <stdarg.h> // NOTE(matt): varargs
@ -9958,6 +9958,8 @@ AppendedIdentifier:
CopyStringToBuffer(&PlayerBuffers.Script, CopyStringToBuffer(&PlayerBuffers.Script,
"\"></script>"); "\"></script>");
CopyStringToBuffer(&CollationBuffers->Player, "<div>\n"
" ");
CopyLandmarkedBuffer(&CollationBuffers->Player, &PlayerBuffers.Menus, 0, PAGE_PLAYER); CopyLandmarkedBuffer(&CollationBuffers->Player, &PlayerBuffers.Menus, 0, PAGE_PLAYER);
CopyStringToBuffer(&CollationBuffers->Player, "\n" CopyStringToBuffer(&CollationBuffers->Player, "\n"
" "); " ");
@ -9965,7 +9967,7 @@ AppendedIdentifier:
CopyStringToBuffer(&CollationBuffers->Player, "\n" CopyStringToBuffer(&CollationBuffers->Player, "\n"
" "); " ");
CopyStringToBuffer(&CollationBuffers->Player, "</div>\n" CopyStringToBuffer(&CollationBuffers->Player, "</div>\n"
" "); " ");
CopyLandmarkedBuffer(&CollationBuffers->Player, &PlayerBuffers.Script, 0, PAGE_PLAYER); CopyLandmarkedBuffer(&CollationBuffers->Player, &PlayerBuffers.Script, 0, PAGE_PLAYER);
// NOTE(matt): Tree structure of "global" buffer dependencies // NOTE(matt): Tree structure of "global" buffer dependencies
@ -10277,9 +10279,6 @@ BuffersToHTML(buffers *CollationBuffers, template *Template, char *OutputPath, p
" "); " ");
if(PageType == PAGE_PLAYER) if(PageType == PAGE_PLAYER)
{ {
CopyStringToBuffer(&Master, "<div>\n"
" ");
CopyLandmarkedBuffer(&Master, &CollationBuffers->Player, PlayerOffset, PageType); CopyLandmarkedBuffer(&Master, &CollationBuffers->Player, PlayerOffset, PageType);
MEM_TEST_MID("BuffersToHTML9"); MEM_TEST_MID("BuffersToHTML9");
CopyStringToBuffer(&Master, "\n"); CopyStringToBuffer(&Master, "\n");