From 6a441c51f572bd72f4fba9ee24e2720d72818197 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 3 Dec 2001 18:01:38 +0000 Subject: More cleanups. In particular I've taken non-breaking spaces and hyphens off the todo list, because I've found out that NBS is just done using good old \xA0 (Winterhoff's analysis appears wrong) and hyphens are _all_ nonbreaking. Shame, but you can't have everything. [originally from svn r1442] --- winhelp.c | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'winhelp.c') diff --git a/winhelp.c b/winhelp.c index 40f6ce5..36c353e 100644 --- a/winhelp.c +++ b/winhelp.c @@ -10,7 +10,6 @@ /* * Still to do: * - * - nonbreaking spaces and hyphens will be needed. * - tabs, and tab stop settings in the paragraphinfo. * * Potential future features: @@ -48,6 +47,11 @@ * descriptor number in to whlp_set_font. This will also mean * removing the WHLP_FONT_* enum in winhelp.h. * + * - sort out begin_topic. Ideally we should have a separate + * topic_macro function that adds to the existing linkdata for + * the topic, because that's more flexible than a variadic + * function. + * * - find out what should happen if a single topiclink crosses * _two_ topicblock boundaries. * @@ -1852,25 +1856,6 @@ int main(void) whlp_text(h, "This third topic is almost as boring as the first. Woo!"); whlp_end_para(h); -#if 0 - { - int i; - for (i = 0; i < count234(h->text); i++) { - struct topiclink *link = index234(h->text, i); - FILE *p; - printf("record type %d\n", link->recordtype); - printf("linkdata1: %p\n", link->data1); - p = popen("dump -f", "w"); - fwrite(link->data1, 1, link->len1, p); - fclose(p); - printf("linkdata2: %p\n", link->data2); - p = popen("dump -f", "w"); - fwrite(link->data2, 1, link->len2, p); - fclose(p); - } - } - #endif - /* * Browse sequence. */ -- cgit v1.1