mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
fix null reference bug and handle escaped escape characters in string tokenization
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
}
|
||||
|
||||
Encoding fromFont = null;
|
||||
font.Match(x => fromFont = x.Encoding != null ? new BuiltInEncoding(x.Encoding) : default(Encoding), x =>
|
||||
font?.Match(x => fromFont = x.Encoding != null ? new BuiltInEncoding(x.Encoding) : default(Encoding), x =>
|
||||
{
|
||||
if (x.Fonts != null && x.Fonts.Count > 0)
|
||||
{
|
||||
|
@@ -109,6 +109,7 @@
|
||||
if (isEscapeActive)
|
||||
{
|
||||
builder.Append(c);
|
||||
isEscapeActive = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user