\n\n new line breaks don't work in language override

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
railer
Joomla! Explorer
Joomla! Explorer
Posts: 284
Joined: Mon Feb 27, 2006 7:52 pm

\n\n new line breaks don't work in language override

Post by railer » Fri May 22, 2020 4:37 pm

I have a Joomla 3.8.8 site and when a new user registers the activation email sent to them does not have any line breaks in it, even though the language file text has double new-line tags in it — \n\n.

What happened and how do I fix this?

For this particular message, I copied it from the en-GB.com_users.ini language file and created a language override with some slight word changes. Formatting should be fine in terms of the placeholders used. It's just not showing any line breaks in the emails sent out.

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 6093
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: \n\n new line breaks don't work in language override

Post by AMurray » Sat May 23, 2020 5:08 am

First problem - you should update to the stable latest release - 3.9.18 - your site is two years out of date (v3.8.8 was released May 2018)

Can you try \r for carriage return (new paragraph) instead?

(Maybe updating Joomla will also correct the issue at hand)
Regards,
--------------------------------------------------------------
A Murray
Help you I can, yes!. Post your question, you should. Keep it on topic you must!
Use the Forc....Forum Post Assistant my young Padawan!

milesreid
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 15, 2013 3:17 pm
Location: Leeds, UK
Contact:

Re: \n\n new line breaks don't work in language override

Post by milesreid » Tue Jul 07, 2020 11:12 am

Did anyone find a resolution to this? I cannot get a line break to work in my ini constants. Have tried \n\n and \r but neither work.

I am using Joomla 3.9
thx
Miles


Post Reply

Return to “Language - Joomla! 3.x”