[pango] test-break: Print line separator in hex



commit dd83708301c05fd02866b9a2e1d2a811341f8c92
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 7 21:37:15 2019 -0400

    test-break: Print line separator in hex
    
    This alternative is not useful.

 tests/test-break.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/test-break.c b/tests/test-break.c
index f9b8d94e..e4c5bd28 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -176,7 +176,9 @@ test_file (const gchar *filename, GString *string)
               g_string_append (s3, "   ");
               g_string_append (s4, "   ");
             }
-          else if (g_unichar_isprint (ch))
+          else if (g_unichar_isgraph (ch) &&
+                   !(g_unichar_type (ch) == G_UNICODE_LINE_SEPARATOR ||
+                     g_unichar_type (ch) == G_UNICODE_PARAGRAPH_SEPARATOR))
             {
               g_string_append_unichar (string, ch);
               g_string_append (s1, " ");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]