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

Lubos Lunak l.lunak at suse.cz
Fri Jul 29 10:52:07 PDT 2011


On Friday 29 of July 2011, Caolán McNamara wrote:
> 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

 I've noticed it in .doc as well, but .docx is XML, so this doesn't look right 
there. That's why I'm asking if there's any specific reason for this.

-- 
 Lubos Lunak
 l.lunak at suse.cz


More information about the LibreOffice mailing list