Kaydet (Commit) 24346dc6 authored tarafından alexey.chemichev's avatar alexey.chemichev Kaydeden (comit) Michael Stahl

tdf#90904 Sorry, mixed Characters and CharactersWithSpaces at a first time

Without this patch Windows Explorer shows different "Character count" for the same text saved with MSW an LO.

Now both stats are explicitly exported this way:
NonWhitespaceCharacterCount -> XML_Characters
CharacterCount -> XML_CharactersWithSpaces

Change-Id: I0a3b827629e88ab5e09aa8440e5f19e7fba2d831
Reviewed-on: https://gerrit.libreoffice.org/20058Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst a95f2e02
......@@ -664,7 +664,6 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp
writeElement( pAppProps, XML_HeadingPairs, "heading pairs" );
writeElement( pAppProps, XML_TitlesOfParts, "titles of parts" );
writeElement( pAppProps, XML_LinksUpToDate, "links up-to-date" );
writeElement( pAppProps, XML_CharactersWithSpaces, "characters with spaces" );
writeElement( pAppProps, XML_SharedDoc, "shared doc" );
writeElement( pAppProps, XML_HyperlinkBase, "hyperlink base" );
writeElement( pAppProps, XML_HLinks, "hlinks" );
......@@ -695,13 +694,20 @@ writeAppProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xProp
writeElement(pAppProps, XML_Words, nValue);
}
it = aStats.find("CharacterCount");
it = aStats.find("NonWhitespaceCharacterCount");
if (it != aStats.end())
{
if (it->second >>= nValue)
writeElement(pAppProps, XML_Characters, nValue);
}
it = aStats.find("CharacterCount");
if (it != aStats.end())
{
if (it->second >>= nValue)
writeElement(pAppProps, XML_CharactersWithSpaces, nValue);
}
it = aStats.find("ParagraphCount");
if (it != aStats.end())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment