#138 handling long unbroken strings in WriteXml

closed-fixed
Ulrich Telle
wxpdfdoc (19)
5
2012-01-12
2012-01-11
Eric W Savage
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

     
    Attachments
  • Eric W Savage
    Eric W Savage
    2012-01-11

    PDF generated using attached code

     
    Attachments
  • Eric W Savage
    Eric W Savage
    2012-01-11

    expected PDF

     
    Attachments
  • Eric W Savage
    Eric W Savage
    2012-01-11

    possible patch for wxPdfDocument

     
    Attachments
  • Eric W Savage
    Eric W Savage
    2012-01-11

    possible patch for pdfxml.cpp

     
    Attachments
  • 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.