Commit cf522dcf authored by Matthias Clasen's avatar Matthias Clasen
Browse files

tabs: Tweak string format

Use newlines to separate tabs, rather than spaces.
parent ae8297b7
......@@ -395,7 +395,7 @@ pango_tab_array_to_string (PangoTabArray *tab_array)
for (int i = 0; i < tab_array->size; i++)
{
if (i > 0)
g_string_append_c (s, ' ');
g_string_append_c (s, '\n');
if (tab_array->tabs[i].alignment == PANGO_TAB_RIGHT)
g_string_append (s, "right:");
......
......@@ -91,17 +91,17 @@ test_serialize_tab_array (void)
""
};
const char *roundtripped[] = {
"0 10 100 200 400",
"0px 10px 100px 200px 400px",
"0 10",
"20 10",
"10px right:20px center:30px decimal:40px",
"0\n10\n100\n200\n400",
"0px\n10px\n100px\n200px\n400px",
"0\n10",
"20\n10",
"10px\nright:20px\ncenter:30px\ndecimal:40px",
"decimal:10240:94",
""
};
const char *invalid[] = {
"not a tabarray",
"-10\n-20",
"-10:-20",
"10ps 20pu",
"10, 20",
"10 20px 30",
......
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