Ignore:
Timestamp:
Jan 4, 2010, 2:07:34 PM (15 years ago)
Author:
Kevin Toppenberg
Message:

Fix for HTML templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/Templates/fTemplateDialog.pas

    r654 r655  
    264264         if(frmTemplateDialog.ModalResult = mrOK) then begin
    265265           GetText(SL, TRUE);     {TRUE = Include embedded fields}
     266           {
    266267           if uTemplates.bUsingHTMLMode then begin
    267268              SL.Text := FormatHTMLTags(SL.Text);
     
    269270              SL.Text := RemoveHTMLTags(SL.Text);
    270271           end;
     272           }
    271273         end else begin
    272274          if (not PreviewMode) and (not frmTemplateDialog.Silent) and (not uInit.TimedOut) then
     
    380382  tmp := TStringList.Create;
    381383  try
    382     tmp.text := AText;
     384    if uTemplates.bUsingHTMLMode then begin   //elh   01/04/10
     385      tmp.text := FormatHTMLTags(AText);
     386    end else begin
     387      tmp.text := RemoveHTMLTags(AText);
     388    end;
     389    //elh tmp.text := AText;
    383390    CheckBoilerplate4Fields(tmp, CaptionText, PreviewMode);
    384391    AText := tmp.text;
Note: See TracChangeset for help on using the changeset viewer.