Hi
Is it possible to create "line breaks" (like saying /n or something) in the Description and Comments Field through a script?
I want to convert <p> and <br> to line breaks, so that text in paragraphs on a webpage doesn't end up as one long paragraph in AMC.
Line breaks in Description Field through script
in the code the linebreak is the ASCII value of the character, so newline & carriage return :
If you want to replace the <p> and <br> you can do this :
(here you'll get an double line break for <p> tag)
Code: Select all
value := atext + #13#10 + anothertext
Code: Select all
value := StringReplace(value, '<br>', #13#10);
value := StringReplace(value, '<p>', #13#10#13#10);