[Libreoffice] [PATCH] Fix field values in export to docx

Caolán McNamara caolanm at redhat.com
Fri Jul 29 02:40:35 PDT 2011


On Thu, 2011-07-28 at 17:14 +0200, Lubos Lunak wrote:
> > -        // Find another way for hyperlinks
> > -        RunText( rInfos.pField->GetFieldName() );
> > +        String sExpand( rInfos.pField->ExpandField( true ) );
> > +        sExpand.SearchAndReplaceAll( 0x0A, 0x0B );
> 
>  This line looks strange. What is the reason for this?

You'll find the same pattern in the binary .doc import/export. Newlines
embedded in fields are 0x0B in .doc and 0x0A for us. Presumably the same
is true in .docx

C.



More information about the LibreOffice mailing list