title: Why does my After Effects expression remove my text formatting?
body: <p>I'm just trying to create a simple type-on effect for using as a sort of 'lower-third' to show people's names and job titles in videos. I've used a couple of tutorials and put together an expression which does the job, but it removes the formatting from the second line of text. </p>
  
  <p>I want to use the same text layer for both lines (name and job title) so that the blinking cursor carries through to the second line, but I want the second line to be smaller and in a different font. I've styled the type to look as I want it to, but when I apply the expression the second line appears formatted the same as the first. </p>
  
  <p>I've exported to check it's not just a preview thing. </p>
  
  <p>Here's the expression:</p>
  
  <pre><code>L = text.sourceText.length;
  PT = time - thisLayer.inPoint;
  T = PT*effect("Speed")("Slider") - effect("Start at")("Slider")*effect("Speed")("Slider");
  Bl = effect("Cursor Blink")("Slider");
  F = Math.round((PT*Bl) % 1);
  
  if(F == 1 | (T&lt;L &amp; T&gt;0)){Fl = "|";}else{Fl = ""}
  
  substr(0,T) + Fl
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>