summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-04 09:43:08 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-08-04 10:37:44 -0400
commit2e6f2eb8148220b09d4834065d53c73a3ac2427b (patch)
tree9fce36e84330531009328f2054262a4f3eddd68f /tests
parent1284511871dd80592ef862fcc5ccb5639ac9fe0e (diff)
downloadpango-2e6f2eb8148220b09d4834065d53c73a3ac2427b.tar.gz
Add an insert-hyphens attribute
Add a text attribute that allows to suppress insertion of hyphens at intra-word line breaks. This is useful for non-paragraph-like contexts, where line breaks are needed, but hyphens are not expected.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-common.c b/tests/test-common.c
index 3b1620ed..012059f4 100644
--- a/tests/test-common.c
+++ b/tests/test-common.c
@@ -119,6 +119,7 @@ print_attribute (PangoAttribute *attr, GString *string)
case PANGO_ATTR_FOREGROUND_ALPHA:
case PANGO_ATTR_BACKGROUND_ALPHA:
case PANGO_ATTR_ALLOW_BREAKS:
+ case PANGO_ATTR_INSERT_HYPHENS:
case PANGO_ATTR_SHOW:
g_string_append_printf (string, "%d", ((PangoAttrInt *)attr)->value);
break;