diff --git a/Makefile b/Makefile
index ed50e8b..fc1bcd8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC ?= cc
-CFLAGS ?= -I external/xemil/include -I src
+CFLAGS ?= -I external/xemil/include -I src $(DEFS)
LDFLAGS ?=
LIBS ?=
AFTER ?=
diff --git a/Makefile.watcom b/Makefile.watcom
index d2f45ee..8b76ae1 100644
--- a/Makefile.watcom
+++ b/Makefile.watcom
@@ -1,5 +1,7 @@
CC = owcc -bnt
+DEFS = -DSTBI_NO_SIMD
E = .exe
AFTER = wrc -q -bt=nt src/taiga.rc taiga.exe
+LIBS =
include Makefile
diff --git a/src/classic.c b/src/classic.c
index 7ac3ff6..4cfb163 100644
--- a/src/classic.c
+++ b/src/classic.c
@@ -123,6 +123,7 @@ void classic_stylesheet(FILE* out, const char* top) {
fprintf(out, " padding: 0.33em 0 0.67em 5px;\n");
fprintf(out, " margin: 0.67em 0;\n");
fprintf(out, "}\n");
+ fprintf(out, "\n");
}
}
@@ -186,7 +187,7 @@ void classic_body(FILE* out, const char* top, const char* title, xl_node_t* body
sitesearch = "https://invalid.link";
fprintf(out, "
\n");
- fprintf(out, " \n");
+ fprintf(out, "
\n");
fprintf(out, " | \n");
for(i = 0; i < sizeof(images) / sizeof(images[0]); i++) {
char path[64];
@@ -228,7 +229,7 @@ void classic_body(FILE* out, const char* top, const char* title, xl_node_t* body
fprintf(out, " |
\n");
fprintf(out, "
\n");
fprintf(out, " \n");
- fprintf(out, " \n");
+ fprintf(out, "
\n");
fprintf(out, " | \n");
if((nodes = xl_get_path(skinconf->root, "breadcrumb.link")) != NULL) {
int i;
@@ -252,7 +253,7 @@ void classic_body(FILE* out, const char* top, const char* title, xl_node_t* body
free(nodes);
}
fprintf(out, " | \n");
- fprintf(out, " \n");
+ fprintf(out, " | \n");
fprintf(out, " |
\n");
fprintf(out, " \n");
fprintf(out, " \n");
- fprintf(out, " \n", top);
- fprintf(out, " \n", top);
+ fprintf(out, " \n", top);
+ fprintf(out, " \n", top);
fprintf(out, " | \n");
fprintf(out, " |
\n");
fprintf(out, "
\n");
- fprintf(out, " \n");
}
diff --git a/src/default.c b/src/default.c
index 42732f0..6f116d6 100644
--- a/src/default.c
+++ b/src/default.c
@@ -121,9 +121,9 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int indent) {
sprintf(tag + strlen(tag), " \n");
sprintf(tag + strlen(tag), " \n");
sprintf(tag + strlen(tag), " \n");
- sprintf(tag + strlen(tag), " \n", top, element->name);
+ sprintf(tag + strlen(tag), " \n", top, element->name, say);
sprintf(tag + strlen(tag), " | \n");
- sprintf(tag + strlen(tag), " \n");
+ sprintf(tag + strlen(tag), " | \n");
sprintf(tag + strlen(tag), " %s%s\n", say, author);
sprintf(tag + strlen(tag), " | \n");
sprintf(tag + strlen(tag), "
\n");
@@ -146,7 +146,13 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int indent) {
strcmp(element->name, "sub") == 0 || /**/
strcmp(element->name, "sup") == 0 || /**/
strcmp(element->name, "tr") == 0 || /**/
- strcmp(element->name, "em") == 0) {
+ strcmp(element->name, "em") == 0 || /**/
+ strcmp(element->name, "h1") == 0 || /**/
+ strcmp(element->name, "h2") == 0 || /**/
+ strcmp(element->name, "h3") == 0 || /**/
+ strcmp(element->name, "h4") == 0 || /**/
+ strcmp(element->name, "h5") == 0 || /**/
+ strcmp(element->name, "h6") == 0) {
accept_attr(text, element, "id", "class", NULL);
sprintf(tag, "<%s%s>", element->name, text);
@@ -173,12 +179,11 @@ void default_body(FILE* out, const char* top, xl_node_t* element, int indent) {
sprintf(end, "%s>", element->name);
} else if(strcmp(element->name, "img") == 0) {
- accept_attr(text, element, "src", "alt", "title", "height", "width", "id",
- "class", NULL);
+ xl_attribute_t* attr = element->first_attribute;
- sprintf(tag, "<%s%s>", element->name, text);
+ accept_attr(text, element, "src", "alt", "title", "height", "width", "id", "class", NULL);
- sprintf(end, "%s>", element->name);
+ sprintf(tag, "<%s%s border=\"0\">", element->name, text);
} else if(strcmp(element->name, "script") == 0) {
accept_attr(text, element, "src", "type", NULL);
diff --git a/src/image/fill.c b/src/image/fill.c
index 96e0c30..2a1b13e 100644
--- a/src/image/fill.c
+++ b/src/image/fill.c
@@ -1,6 +1,6 @@
unsigned char image_fill[] = {
- 0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, 0xf0,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0xf9, 0x04,
- 0x01, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x01,
- 0x00, 0x01, 0x00, 0x00, 0x02, 0x02, 0x44, 0x01, 0x00, 0x3b};
+ 0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, 0xf0, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0xf9, 0x04, 0x01, 0x00,
+ 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
+ 0x00, 0x02, 0x02, 0x44, 0x01, 0x00, 0x3b};
unsigned int image_fill_len = 43;
diff --git a/src/process.c b/src/process.c
index 71ac688..b191319 100644
--- a/src/process.c
+++ b/src/process.c
@@ -71,6 +71,7 @@ static int parse_file(const char* top, const char* full) {
site_head(f, top, header);
+ fprintf(f, " \n", top);
if(!has_own_icon && (nodes = xl_get_path(skinconf->root, "favicon")) != NULL) {
if(nodes[0]->text != NULL) {
char* p = u_path(top, nodes[0]->text);
@@ -84,6 +85,21 @@ static int parse_file(const char* top, const char* full) {
fprintf(f, " \n");
fprintf(f, " \n");
site_body(f, top, title, body);
+ fprintf(f, " \n");
fprintf(f, " \n");
fprintf(f, "