Package: o3read Version: 0.0.4-1 Severity: normal Tags: patch Hello,
The attached patch adds <hr/> at the beginning and end of each slide of a presentation, improving its readability a lot, see e.g. http://brl.thefreecat.org/fosdem.html Samuel -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24.1 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash Versions of packages o3read depends on: ii libc6 2.7-6 GNU C Library: Shared libraries o3read recommends no packages. -- no debconf information -- Samuel <m> bouhouhouh, b il m'a abandonné. Tout ca parce que je regardais plus mon emacs que lui ! <m> s/lui/ses messages irc/ -+- #ens-mim esseulé -+-
diff -urp o3read-0.0.4/o3tohtml.c o3read-0.0.4-mine/o3tohtml.c --- o3read-0.0.4/o3tohtml.c 2005-01-07 08:28:47.000000000 +0000 +++ o3read-0.0.4-mine/o3tohtml.c 2008-03-07 01:44:11.000000000 +0000 @@ -46,6 +46,7 @@ static int nstyles = 0; static int href; /* links, default 0 */ static char **hrefs; +static void tag_draw_page(hnode *h, hstate *s); static void tag_style_properties(hnode *, hstate *); static void tag_style_style(hnode *, hstate *); static void tag_table_table(hnode *, hstate *); @@ -67,6 +68,7 @@ static struct { char *name; void (*action)(hnode *, hstate *); } tag[] = { + {"DRAW:PAGE", tag_draw_page}, {"STYLE:STYLE", tag_style_style}, {"STYLE:PROPERTIES", tag_style_properties}, {"TABLE:TABLE", tag_table_table}, @@ -127,6 +129,15 @@ static void tree(hnode *h, hstate *s) /* tag handlers are in alphabetical order so I can find them... */ +/* New page */ +static void tag_draw_page(hnode *h, hstate *s) +{ + printf("<hr/>"); + tree(h->child, s); + printf("<hr/>"); + tree(h->next, s); +} + static void tag_style_properties(hnode *h, hstate *s) { char b[1024], *p;