From e99f8d32e25f2f9fa9f29be752e2bb2004ff294b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
Date: Sun, 21 Mar 2010 16:29:08 +0000
Subject: [PATCH] Do not use puts, it adds additional newlines making the
 generated files needlessly ugly.

Originally committed as revision 22623 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/tableprint.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/tableprint.c b/libavcodec/tableprint.c
index c2fbf0e74ac..2d8cc419e47 100644
--- a/libavcodec/tableprint.c
+++ b/libavcodec/tableprint.c
@@ -43,10 +43,9 @@ int main(int argc, char *argv[])
     tableinit();
 
     for (i = 0; tables[i].declaration; i++) {
-        puts(tables[i].declaration);
-        puts(" = {\n");
+        printf("%s = {\n", tables[i].declaration);
         tables[i].printfunc(tables[i].data, tables[i].size, tables[i].size2);
-        puts("};\n");
+        printf("};\n");
     }
     return 0;
 }
-- 
GitLab