RTF Memo field has space at start of blank line

bignose2

Registered User.
Local time
Today, 05:02
Joined
May 2, 2010
Messages
248
Hi,

I have a Rich Text Memo field (data of course Rich Text)

When I am entering text, if I press Enter or (Ctrl+Enter) to get a blank line/spacing between lines the blank line always has a space in front of it.
(You have to refresh the page for this to take effect otherwise looks line)

This is fine, does not cause any issues but if I want to then add something to that line I always have to delete the space.
Not the end of the world but is quite annoying, sometimes I add a lot of text.

If I view in normal text it is <div> </div>
Perhaps this html tag always has to be included with blank line but does seem a little odd.
I could try and strip this out with replace but not sure if this combination will be common elsewhere and my feeble (quick test) does not work properley.
I would have thought this should not be necessary with data I have typed directly, perhaps copy & pasted data to be expected.

Me!Field3 = Replace(Me!Field3, "<div> </div>", "x")

This is page 3 test

Does it work


No sure

ok.

Is replaced with this; actually another space, the original space & now the X

This is page 3 test
x
Does it work
x

No sure
x
ok.


I imaged should be using Chr(13) etc etc rather than actual "<div>.." btu not sure what this is

I don't want to go to great lengths to fix, just hoped perhaps it was something obvious or easy I had missed.

Thanks I/A
 
assuming you are using 2007 or later, richtext uses html tags ("<div>..", etc), so using chr(13) or similar will not work.

'<div> </div>' is html for a blank line

I think you are getting the effect because you are just clicking on a blank line 'to the right' of where you want to enter the text which leaves the   code in place. If you click on the left of the line, you won't get the problem
 

Users who are viewing this thread

Back
Top Bottom