Explorar o código

fix ascii table

There are 4 ascii code attributes on the misplace line.
The first of these errors causes `#format %p' to not chomp off the CR correctly.

This fix has been verified to resolve the issue.
dzp %!s(int64=3) %!d(string=hai) anos
pai
achega
65da51e110
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/tables.c

+ 2 - 2
src/tables.c

@@ -329,6 +329,7 @@ char character_table[256] =
 	0,
 	0,
 
+	0,
 	CHAR_FLAG_SPACE, // \t
 	CHAR_FLAG_SPACE, // \n
 	CHAR_FLAG_SPACE, // \v
@@ -336,7 +337,6 @@ char character_table[256] =
 	CHAR_FLAG_SPACE, // \r
 	0,
 	0,
-	0,
 
 	0,
 	0,
@@ -423,8 +423,8 @@ char character_table[256] =
 	CHAR_FLAG_PRINT|CHAR_FLAG_VAR|CHAR_FLAG_CSI|CHAR_FLAG_ALPHA,
 	CHAR_FLAG_PRINT|CHAR_FLAG_VAR|CHAR_FLAG_CSI|CHAR_FLAG_ALPHA, // 90 Z
 	CHAR_FLAG_PRINT,
-	CHAR_FLAG_PRINT|CHAR_FLAG_CSI, // 93 ]
 	CHAR_FLAG_PRINT,
+	CHAR_FLAG_PRINT|CHAR_FLAG_CSI, // 93 ]
 	CHAR_FLAG_PRINT,
 	CHAR_FLAG_PRINT|CHAR_FLAG_VAR, // 95 _