Commit 346c815e authored by Jon Kåre Hellan's avatar Jon Kåre Hellan
Browse files

(html_append_text): Handle whitespace in a unicode

compatible way.
parent e83937f1
2006-01-04 Jon K Hellan <hellan@acm.org>
* html_read.c (html_append_text): Handle whitespace in a unicode
compatible way.
2005-11-15 Jon K Hellan <hellan@acm.org>
* latex.c (latex2e_write_table_header): Fix off by one.
2005-11-14 Jody Goldberg <jody@gnome.org>
* Release 1.6.1
......
......@@ -83,10 +83,12 @@ html_append_text (GString *buf, const xmlChar *text)
const xmlChar *p;
while (*text) {
while (g_ascii_isspace (*text))
text++;
while (g_unichar_isspace (g_utf8_get_char (text)))
text = g_utf8_next_char (text);
if (*text) {
for (p = text; *p && !g_ascii_isspace (*p); p++)
for (p = text;
*p && !g_unichar_isspace (g_utf8_get_char (p));
p = g_utf8_next_char (p))
;
if (buf->len > 0)
g_string_append_c (buf, ' ');
......
......@@ -524,7 +524,7 @@ latex2e_write_table_header(GsfOutput *output, int num_cols)
gsf_output_printf (output, "%%\t\\multicolumn{%d}{c}{The First Header} \\\\ \\hline \n", num_cols);
gsf_output_printf (output, "%%\t\\multicolumn{1}{c}{colTag}\t%%Column 1\n");
for (col = 1 ; col < num_cols; col++)
for (col = 2 ; col < num_cols; col++)
gsf_output_printf (output, "%%\t&\\multicolumn{1}{c}{colTag}\t%%Column %d\n",col);
gsf_output_printf (output, "%%\t&\\multicolumn{1}{c}{colTag}\t\\\\ \\hline %%Last column\n");
gsf_output_printf (output, "%%\t\\endfirsthead\n\n");
......@@ -533,7 +533,7 @@ latex2e_write_table_header(GsfOutput *output, int num_cols)
gsf_output_printf (output, "%%\t\\hline\n");
gsf_output_printf (output, "%%\t\\multicolumn{%d}{l}{\\ldots\\small\\slshape continued} \\\\ \\hline\n", num_cols);
gsf_output_printf (output, "%%\t\\multicolumn{1}{c}{colTag}\t%%Column 1\n");
for (col = 1 ; col < num_cols; col++)
for (col = 2 ; col < num_cols; col++)
gsf_output_printf (output, "%%\t&\\multicolumn{1}{c}{colTag}\t%%Column %d\n",col);
gsf_output_printf (output, "%%\t&\\multicolumn{1}{c}{colTag}\t\\\\ \\hline %%Last column\n");
gsf_output_printf (output, "%%\t\\endhead\n\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment