diff options
author | Mikael Hallendal <hallski@src.gnome.org> | 2002-04-14 16:16:27 +0000 |
---|---|---|
committer | Mikael Hallendal <hallski@src.gnome.org> | 2002-04-14 16:16:27 +0000 |
commit | c2ac6ea31aa2eb91d741399d60890949de8d891d (patch) | |
tree | 589a9dd7d2630d2266583fbf3752cda587d9c284 | |
parent | 2d79dc272db93ca352102e00aded021886df869e (diff) | |
download | yelp-c2ac6ea31aa2eb91d741399d60890949de8d891d.tar.gz |
i18n fixes
-rw-r--r-- | src/yelp-view-toc.c | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/src/yelp-view-toc.c b/src/yelp-view-toc.c index 2e6643f7..c106b06e 100644 --- a/src/yelp-view-toc.c +++ b/src/yelp-view-toc.c @@ -125,13 +125,11 @@ struct _YelpViewTOCPriv { <tr> \ <td>" #define COLUMN_RIGHT_START "<td valign=\"top\"> \ - <table cellpadding=\"0\" \ - border=\"0\" \ - align=\"right\" \ - cellspacing=\"0\" \ - width=\"100%\"> \ - <tr> \ - <td>" + <table cellpadding=\"0\" \ + border=\"0\" \ + align=\"right\" \ + cellspacing=\"0\" \ + width=\"100%\"><tr><td>" #define COLUMN_END " \ </td> \ @@ -477,9 +475,9 @@ yelp_view_toc_start (YelpViewTOC *view) } yelp_view_toc_printf (view, - TOC_BLOCK_END); - - yelp_view_toc_printf (view, COLUMN_END); + TOC_BLOCK_END + COLUMN_END + PAGE_END); yelp_view_toc_write_footer (view); @@ -650,7 +648,9 @@ yelp_view_toc_man_2 (YelpViewTOC *view, yelp_view_toc_man_emit (view, first); - yelp_view_toc_printf (view, COLUMN_END); + yelp_view_toc_printf (view, + COLUMN_END + PAGE_END); yelp_view_toc_write_footer (view); yelp_view_toc_close (view); @@ -689,10 +689,11 @@ yelp_view_toc_man_1 (YelpViewTOC *view) PAGE_START, string); - yelp_view_toc_printf (view, + yelp_view_toc_printf (view, COLUMN_RIGHT_START - TOC_BLOCK_START - "<h2>%s</h2>", str_subcats); + TOC_BLOCK_START + "<h2>%s</h2>", + str_subcats); do { child = g_node_first_child (node); @@ -761,8 +762,10 @@ yelp_view_toc_info (YelpViewTOC *view) g_free (url); } while ((node = g_node_next_sibling (node))); - yelp_view_toc_printf (view, TOC_BLOCK_END); - yelp_view_toc_printf (view, COLUMN_END); + yelp_view_toc_printf (view, + TOC_BLOCK_END + COLUMN_END + PAGE_END); yelp_view_toc_write_footer (view); yelp_view_toc_close (view); @@ -921,20 +924,19 @@ yelp_view_toc_scrollkeeper (YelpViewTOC *view, section = node->data; yelp_view_toc_printf (view, "<a href=\"%s\">%s</a><br>\n", section->uri, section->name); -/* yelp_view_toc_printf (view, "<li><a href=\"%s\">%s</a>\n", section->uri, section->name); */ } } - -/* yelp_view_toc_write (view, "</ul>\n", -1); */ + yelp_view_toc_printf (view, TOC_BLOCK_END); } - yelp_view_toc_printf (view, COLUMN_END); + yelp_view_toc_printf (view, + COLUMN_END + PAGE_END); yelp_view_toc_write_footer (view); yelp_view_toc_close (view); } - void yelp_view_toc_open_url (YelpViewTOC *view, const char *url) { |