commit - 27bf601b8a55b578d958382de4ff9a8c2643c0b1
commit + c49d61bc3806c1bb3056fb05deb5080c5a32ee9d
blob - 9c00ac612156466396e3a82792fa4aef4b163197
blob + ba73cda40354a59a46adacc8d078e3f30d1c11bf
--- Makefile.am
+++ Makefile.am
pages.c \
telescope.c \
telescope.h \
+ textplain.c \
ui.c \
url.c \
url.h \
blob - 41a108da42b5eecce78b047c15f77978f6fa2a86
blob + a9536a55044cea99c682dd52803a835199adcec2
--- mime.c
+++ mime.c
const char *mediatype;
void (*parserinit)(struct parser*);
} ptable[] = {
- { "text/gemini", gemtext_initparser },
- /* { "text\n/ *", textplain_initparser } */
+ { "text/gemini", gemtext_initparser },
+ { "text/*", textplain_initparser },
{ NULL, NULL}
};
blob - bf54aa6c97b1ba2ff689a44462e7a2ed28fe7f7d
blob + c67cd84e45d7214943b0b5ee92dd9868b4e55025
--- telescope.h
+++ telescope.h
void load_url(struct tab*, const char*);
void stop_tab(struct tab*);
+/* textplain.c */
+void textplain_initparser(struct parser*);
+
/* ui.c */
int ui_init(void);
void ui_on_tab_loaded(struct tab*);
blob - 01090a8afd2133fd138e3443947db4b296b4851b
blob + d0efc2f364127a3ab24def204cffa73c36cda2fa
--- ui.c
+++ ui.c
size_t off, len;
const char *linestart;
+ if (l->line == NULL)
+ return emitline(tab, 0, &off, l, &linestart);
+
len = strlen(l->line);
off = 0;
linestart = l->line;