aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdf_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf_writer.c')
-rw-r--r--src/pdf_writer.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pdf_writer.c b/src/pdf_writer.c
index 43c4255..8d5fc16 100644
--- a/src/pdf_writer.c
+++ b/src/pdf_writer.c
@@ -26,12 +26,15 @@ pdf_dump_obj(pdf_object_t **pdf, FILE **fp)
fprintf(*fp, "%d 0 obj\n", ptr->id);
- if (ptr->dictionary != NULL)
+ if (ptr->dictionary != NULL) {
fputs(ptr->dictionary, *fp);
- else if (ptr->object != NULL)
+ fputs("\n", *fp);
+ } else if (ptr->object != NULL) {
fputs(ptr->object, *fp);
- else if (ptr->stream == NULL)
+ fputs("\n", *fp);
+ } else if (ptr->stream == NULL) {
fputs("null\n", *fp);
+ }
if (ptr->stream != NULL) {
fputs("stream\r\n", *fp);