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 >
|