JafSoft Support Forums  
  Products:
AscToHTM (text to HTML) / AscToPDF (text to PDF) / AscToRTF (text to RTF) / Detagger (HTML to text and markup removal) 

 
  Forum options:
Forum Index  Register  Login  Search  FAQ  Log Out
Member options:
My Profile  Inbox  Member List  Address Book  My Subscription  My Forums 
 
 

Note: Some forums require a login other than "Guest" in order to post messages and replies


HTML code in output when trying to use Text fragments

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums > [Product forums] > Detagger > HTML code in output when trying to use Text fragments Page: [1]
Login
Message << Older Topic   Newer Topic >
HTML code in output when trying to use Text fragments - 4/10/2006 9:30:58 PM   
Jaf

 

Posts: 70
Joined: 2/1/2006
Status: offline
Symptoms: conversions work fine, but when using Text Fragments all the HTML code appears in the output, which isn't converted to text.

When this happens, it is usually because the text fragment hasn't been properly defined.  In particular if the $_$_END_BLOCK isn't properly defined this can happen.

The reason for this is that your text fragments file is effectively inserted at the top of the HTML source file as seen by Detagger.  If the END_BLOCK is missing, then the converter treats all the HTML as a continuation of the last text fragment, and so includes all the HTML code in a fragment of text that isn't itself converted.  If that fragment is a TEXT_HEADER or TEXT_FOOTER then all the HTML code is copied to the output unchanged.

In normal usage each DEFINE_TEXT_FRAGMENT tag should be paired with a matching END_BLOCK, and both tags should be at the start of a line.  Common causes of this problem are that either the END_BLOCK is missing, or has been indented slightly (it should be at the start of the line).

This is an example of a correct fragment definition

$_$_DEFINE_TEXT_FRAGMENT TEXT_HEADER

 (this text goes at the top of the file).  
 Note the END_BLOCK tag is aligned with the DEFINE_TEXT_FRAGMENT 
 tag, and is on the left margin

$_$_END_BLOCK


Here are examples of invalid fragment definitions
$_$_DEFINE_TEXT_FRAGMENT TEXT_HEADER

 (this fragment's END_BLOCK is indented (and it shouldn't be)

  $_$_END_BLOCK
  


$_$_DEFINE_TEXT_FRAGMENT TEXT_FOOTER

 (this block's END_BLOCK tag is missing)
 


< Message edited by Jaf -- 4/11/2006 8:31:45 AM >
Post #: 1
Page:   [1]
All Forums > [Product forums] > Detagger > HTML code in output when trying to use Text fragments Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts