We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c15b11c commit 47d49c1Copy full SHA for 47d49c1
main.c
@@ -2,7 +2,7 @@
2
#include "string_table.h"
3
#include "options.h"
4
5
-#define VERSION_NAME "0.0.2"
+#define VERSION_NAME "0.0.3"
6
7
void print_version() {
8
printf("Table printer version: %s\n", VERSION_NAME);
string_table.c
@@ -30,8 +30,8 @@ string_table_t *get_string_table(options_t *options) {
30
width++;
31
continue;
32
}
33
- if (input == '\n') {
34
-
+ if (input == '\n' || input == '\r') {
+ if(buffer->length == 0) continue;
35
add_string_to_array(line, buffer);
36
buffer = create_string_empty(12);
37
0 commit comments