fixed: whitespace issue

This commit is contained in:
daboe01
2026-06-20 10:36:07 +02:00
parent 319bcdaba9
commit 15bbca8d77
+7 -2
View File
@@ -979,7 +979,11 @@ var kRgsymRtf = {
else
{
_freename += tmp;
[self _appendPlainString:tmp];
// Only append literal spaces to the document if we are in the active body state
if (_curState == 0)
{
[self _appendPlainString:tmp];
}
}
break;
@@ -1025,7 +1029,8 @@ var kRgsymRtf = {
if (_hexreturn)
{
if (ch.length > 0)
// Only append decoded characters if we are in the active body state
if (ch.length > 0 && _curState === 0)
{
var byteVal = parseInt(ch, 16);
var unicodeVal = byteVal;