Skip to content

Commit b3d8b81

Browse files
committed
Ensure a space before PDF arrays are written, even in non-verbose mode
1 parent cdf089b commit b3d8b81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PdfSharpCore/Pdf.IO/PdfWriter.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public PdfWriter(Stream pdfStream, PdfStandardSecurityHandler securityHandler)
5757
public void Close(bool closeUnderlyingStream)
5858
{
5959
if (_stream != null && closeUnderlyingStream)
60-
_stream.Dispose();
60+
_stream.Dispose();
6161
_stream = null;
6262
}
6363

@@ -577,8 +577,8 @@ void WriteSeparator(CharCat cat, char ch)
577577
}
578578
else
579579
{
580-
if (cat == CharCat.Character)
581-
_stream.WriteByte((byte)' ');
580+
//if (cat == CharCat.Character)
581+
_stream.WriteByte((byte)' ');
582582
}
583583
break;
584584
}

0 commit comments

Comments
 (0)