Change lines to paragraphs

    • Offizieller Beitrag

    One more time the new concept can show its flexibility :-)

    Code
    par := WPRichText1.LastPar;
      while par<>nil do
      begin
         for i:=par.LineCount-1 downto 1 do par.SplitAt(par.LineOffset(i));
         par := par.PrevPar;
      end;
      WPRichText1.ReformatAll(false,true);

    (copied this topic to FAQ)

    Julian