#138 handling long unbroken strings in WriteXml

closed-fixed
wxpdfdoc (23)
5
2012-01-12
2012-01-11
No

When passing a long unbroken string within a tag to WriteXml the text is broken into multiple line before it needs to be. This is most easily seen within a "td" tag, where the text is output with a single character per line.

wxpdfdoc version: 0.9.2.1
code used to generate issue: xmlwrite.cpp (based on xmlwrite.cpp in samples/minimal)

output PDFs and possible resolution will be attached

Discussion

  • Eric W Savage

    Eric W Savage - 2012-01-11

    code used to generate issue

     
  • Eric W Savage

    Eric W Savage - 2012-01-11

    PDF generated using attached code

     
  • Eric W Savage

    Eric W Savage - 2012-01-11

    expected PDF

     
  • Eric W Savage

    Eric W Savage - 2012-01-11

    possible patch for wxPdfDocument

     
  • Eric W Savage

    Eric W Savage - 2012-01-11

    possible patch for pdfxml.cpp

     
  • Eric W Savage

    Eric W Savage - 2012-01-11

    The original and expected PDFs have been uploaded.
    A possible fix to resolve this issue has also been uploaded.

     
  • Ulrich Telle

    Ulrich Telle - 2012-01-11

    Thanks for reporting this issue and for providing a patch.

    I'll check your patch and fix the issue in the wxCode SVN repository as soon as I can find the time.

     
  • Ulrich Telle

    Ulrich Telle - 2012-01-11
    • assigned_to: nobody --> utelle
    • status: open --> open-accepted
     
  • Ulrich Telle

    Ulrich Telle - 2012-01-12

    The bug in WriteXml is now fixed in the wxCode SVN repository.

    The solution differs from the provided patch as the patch didn't work as expected for other cases (like the first paragraph in the sample application).

     
  • Ulrich Telle

    Ulrich Telle - 2012-01-12
    • status: open-accepted --> closed-fixed
     
  • Eric W Savage

    Eric W Savage - 2012-01-12

    Excellent! Thanks again for the quick turnaround.

     

Log in to post a comment.