Handling Paragraphs

General TRichView support forum. Please post your questions here
Post Reply
aleigh24
Posts: 6
Joined: Sat Jul 12, 2008 2:30 pm

Handling Paragraphs

Post by aleigh24 »

Hi there,

I'm sure there's a way to deal with this, but I just can't find an answer...

How do I turn off paragraphing and only have RichViewEdit insert a line break when Enter is hit. Basically, make the editor do a Shift-Enter when Enter is hit. The issue is, when I export to HTML, the outputted document appears with large double spaces because P tags are being inserted throughout it.

Regards,

Andrew
Sergey Tkachenko
Site Admin
Posts: 17522
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Handling Paragraphs

Post by Sergey Tkachenko »

Sorry, there is no option to add line breaks instead of paragraph breaks on Enter.
But there is an option to save <div> instead of <p> for paragraph. Browsers do not add spacing to <div> by default.
As I understand, you save a simplified version of HTML (which uses formatting tags instead of CSS), otherwise TRichView would save paragraph spacing to HTML.
In this case, assign

Code: Select all

RichViewSavePInHTML = False;
RichViewSavePInHTML is a global variable defined in CRVData unit.
aleigh24
Posts: 6
Joined: Sat Jul 12, 2008 2:30 pm

Re: Handling Paragraphs

Post by aleigh24 »

Fantastic! That did the trick. Thanks so much Sergey.
Post Reply