Posts merging

Custom separator - Posts merging

Custom separator

by mbole » Mon Oct 18, 2021 2:59 am

Hi,
If I add any text in separator, for example:

Code: Select all

blah, blah
{L_MERGE_SEPARATOR}
when posts are merged, I get:

Code: Select all

first post textblah, blah

Added in 4 minutes 48 seconds:
So text added in seprator is "glued" without line brake, and there is big line spacing betwen "blah, blah" and "Added in..."

I will like something like this:

Code: Select all

first post text

-------------------- Merged messages

second post text
mbole
Registered User
Posts: 20
Joined: Fri Aug 12, 2011 6:37 pm

Re: Custom separator

by rxu » Mon Oct 18, 2021 12:53 pm

mbole wrote:So text added in seprator is "glued" without line brake
It should possible to add line breaks using \n, like that:
posts_merging.png
posts_merging.png (4.92 KiB) Viewed 46 times
mbole wrote: and there is big line spacing betwen "blah, blah" and "Added in..."
Well, it wasn't actually intended to use custom separator along with the bundled one. Stock separator is a language string which already contains linebreaks at its head. It can be done this way I guess (for example):

Code: Select all

[size=85][color=#008000]\n\nblah, blah
Added after {TIME}[/color][/size]
So you'll get something like this:

posts_merging1.png
posts_merging1.png (1.81 KiB) Viewed 48 times
rxu
Extensions Development Team
Posts: 4018
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Custom separator

by mbole » Mon Oct 18, 2021 2:07 pm

Tahnk you very much.
Exactly what I needed.
Just needed another \n at the end
mbole
Registered User
Posts: 20
Joined: Fri Aug 12, 2011 6:37 pm