Page 1 of 1

TRichView v.19 docx import

Posted: Fri Jan 08, 2021 4:48 pm
by jgkoehn
Greetings,
We were doing some testing and noticed that our ActionTestUni.exe compiled using Lazarus without changes is having text appear like they are joined.
Example: “EtymologicalTendenciesoftheRomans” should be “Etymological Tendencies of the Romans” the ActionTestUni.exe demo from the website works correctly.

.docx is attached for testing.
LazarusTRichViewSpacingsm.jpg
LazarusTRichViewSpacingsm.jpg (194.41 KiB) Viewed 14869 times

Re: TRichView v.19 docx import

Posted: Sun Jan 10, 2021 1:38 pm
by Sergey Tkachenko
I confirm the problem.
Quick fix: open RVXMLDoc.pas, change the line 110 from

Code: Select all

  ReadXMLFile(XMLDoc, Stream);
to

Code: Select all

  ReadXMLFile(XMLDoc, Stream, [xrfPreserveWhiteSpace]);

Re: TRichView v.19 docx import

Posted: Sun Jan 10, 2021 3:42 pm
by jgkoehn
Thanks sir will do

Re: TRichView v.19 docx import

Posted: Tue Jan 12, 2021 12:08 pm
by Sergey Tkachenko
Fixed in version 19.1.1 (uploaded for registered users)