Merge pull request 'Fix bug 67390' (#631) from fix/bug67390 into release/v9.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/631
This commit is contained in:
Elena Subbotina
2026-01-30 08:54:09 +00:00

View File

@ -218,6 +218,25 @@ namespace DocFileFormat
m_oXmlWriter.WriteNodeBegin( L"w:noPunctuationKerning", TRUE );
m_oXmlWriter.WriteNodeEnd( L"", TRUE );
}
if (dop->doptypography->iJustification != 0)
{
m_oXmlWriter.WriteNodeBegin(L"w:characterSpacingControl", TRUE);
const wchar_t* spacingValue = L"doNotCompress";
switch(dop->doptypography->iJustification)
{
case 1:
spacingValue = L"compressPunctuation";
break;
case 2:
spacingValue = L"compressPunctuationAndJapaneseKana";
break;
}
m_oXmlWriter.WriteAttribute(L"w:val", spacingValue);
m_oXmlWriter.WriteNodeEnd(L"", TRUE);
}
}
//footnote properties