Sign In  Sign Up Live-Chat

embedded span tags can cause TOC spacing problems

Last post 07-11-2007, 8:36 AM by forever. 7 replies.
Sort Posts: Previous Next
  •  07-05-2007, 10:45 AM 82850

    embedded span tags can cause TOC spacing problems

    We have data that may or may not have embedded html tags. We discovered that if there is a section with an embedded span tag and that text is used in the TOC, the toc loses the spaces between words. This line:

    <span xmlns="http://www.w3.org/1999/xhtml">Beckman Coulter—<span>SYNCHRON <span>and UniCel DxC SYNCHRON </span>Analyzers: Stirrer Motor May Stall Intermittently [Completed Recall]</span></span>

    Produces this in the TOC:

    Beckman Coulter—SYNCHRONand UniCel DxC SYNCHRONAnalyzers: Stirrer Motor May Stall Intermittently [Completed Recall]

    But this in the PDF page where it displays correctly:

    Beckman Coulter—SYNCHRON and UniCel DxC SYNCHRON Analyzers: Stirrer Motor May Stall Intermittently [Completed Recall]

    Note the lost spaces between SYNCHRONand and SYNCHRONAnalyzers. If you move the <span> before the 'and' to after it then the line becomes 'andUniCel'

    The extra span tags get inserted during the admin process through InfoPath forms.

    We are using Aspose Pdf version 3.4.7.0

     
  •  07-05-2007, 11:47 AM 82854 in reply to 82850

    Re: embedded span tags can cause TOC spacing problems

    Hi,

    Thank you for considering Aspose.

    I am able to reproduce the problem. I am not sure about the reason but I will discuss this issue with the developers and we will let you know as soon as solution is found.

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  07-05-2007, 8:34 PM 82894 in reply to 82850

    Re: embedded span tags can cause TOC spacing problems

    We have reproduced the error using BindHTML method. But I wonder how you support the inline HTML in TOC. Can you please provide the code that can reproduce this error to us?
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-06-2007, 10:24 AM 83007 in reply to 82894

    Re: embedded span tags can cause TOC spacing problems

    Attachment: Present (inaccessible)
    the doc is converted to xml first, then i use bindxml
     
  •  07-06-2007, 8:37 PM 83059 in reply to 83007

    Re: embedded span tags can cause TOC spacing problems

    In my test HTML tags are not supported in heading. Is the HTML processed in Aspose.Words? Can you please provide a project with all the resources that can reproduce this error?
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-10-2007, 1:25 PM 83434 in reply to 83059

    Re: embedded span tags can cause TOC spacing problems

    Attachment: Present (inaccessible)

    here is a project that will reproduct the error. The interesting thing is if the word doc is saved to disk and read back in the TOC is created correctly. It is only when running through the building of the word doc in memory does the error show up.

    The project first builds the word doc bascially the way the production app does except reads the data from a stored xml dataset. It then saves the document to disk (which is normally not done) and creates the BuildAlert.pdf. It then reads the word doc from disk and creates the BuildAlert.pdf. If the project works for you as it does here, the ReadAlert.pdf should have the spacing problem and the ReadAlert.pdf should be ok.

     
  •  07-10-2007, 10:59 PM 83503 in reply to 83434

    Re: embedded span tags can cause TOC spacing problems

    I have found the reason. We will try to fix it soon.
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-11-2007, 8:36 AM 83582 in reply to 83503

    Re: embedded span tags can cause TOC spacing problems

    Attachment: Present (inaccessible)
    I think this bug has been fixed. You can try the attachment before we publishing the hotfix.
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
View as RSS news feed in XML