diff --git a/src/gen-use-table.py b/src/gen-use-table.py index 2e27cd960..ca455dda8 100755 --- a/src/gen-use-table.py +++ b/src/gen-use-table.py @@ -497,7 +497,7 @@ for k,v in sorted(use_positions.items()): tag = k + suf print ("#undef %s" % tag) print () -print (""" +print (r""" #ifdef HB_USE_TABLE_MAIN int main (int argc, char **argv) { diff --git a/src/hb-ot-shaper-use-table.hh b/src/hb-ot-shaper-use-table.hh index cde150e7c..770626dea 100644 --- a/src/hb-ot-shaper-use-table.hh +++ b/src/hb-ot-shaper-use-table.hh @@ -398,16 +398,14 @@ int main (int argc, char **argv) { if (argc != 2) { - printf ("usage: %s hex-char -", argv[0]); + printf ("usage: %s hex-char\n", argv[0]); return 1; } hb_codepoint_t u; sscanf (argv[1], "%x", &u); - printf ("%d -", hb_use_get_category (u)); + printf ("%d\n", hb_use_get_category (u)); return 0; }