~foura/biobuf.link

488a079330d128dc02c0d7a92cc22b4e3c1ceaea — james palmer a month ago a6bff0f
add support for <pre> tags
1 files changed, 4 insertions(+), 0 deletions(-)

M src/main.c
M src/main.c => src/main.c +4 -0
@@ 130,6 130,7 @@ parsepage(List *pages, char *name)
		case '*':
		case '&':
		case '-':
		case '#':
			t = tagalloc(line[0]);
			txtcat(t->text, text);
			break;


@@ 257,6 258,9 @@ fmtmain(Biobuf *bio, Page *p)
			i--;
			Bprint(bio, "</ul>\n");
			break;
		case '#':
			Bprint(bio, "<pre>\n%s\n</pre>\n", txtstr(t->text));
			break;
		}
	}