 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
September 3, 2021 at 4:46 pm #1319669Dear Enfold Team, 
 I have created a contact form in which I would like to send the sender a confirmation email.
 I have entered the corresponding text of the email in the associated field.
 Unfortunately, Enfold also inserts a separate blank line when a line breaks.How can I work around this problem? Best regards, 
 Jo MeyerSeptember 6, 2021 at 5:28 am #1319828Hey Jo, Thank you for the inquiry. Are saying that the line breaks are duplicated? Are you using br tags? Try to use the RETURN or ENTER key to create a new line instead of the br tags. Please provide a screenshot of the issue using imgur or dropbox. Best regards, 
 IsmaelSeptember 7, 2021 at 11:05 am #1319953Dear Ismael, 
 Thank you for your answer.Yes, the line breaks are duplicated. 
 I didn’t use any br tags, just the RETURN key or, as an experiment, Shift-RETURN.
 I also tried br tags, but that didn’t change anything either.Best regards, 
 JoSeptember 9, 2021 at 2:00 am #1320145Hi, Thank you for the info. Try to wrap the paragraphs or each line inside a paragraph tag with a class attribute. Example. <p class="av-ar-line">Something important here.</p> <p class="av-ar-line">Something more important here.</p> <p class="av-ar-line">Something very important here.</p>Make sure to close the tags properly because they could break the layout of the email message. Best regards, 
 IsmaelSeptember 9, 2021 at 9:13 am #1320229Dear Ismael, 
 Your solution created even larger gaps.
 Do you have any other idea or solution?Best regards, 
 JoSeptember 10, 2021 at 7:00 am #1320342Hi, I see. Try to modify the enfold/framework/php/class-form-generator.php file, look for this code around line 1339 and remove the nl2br functions wrapping the autoresponder message. $mess = nl2br( $this->form_params['autoresponder'] ); $mess .= ' <strong>' . __( 'Your Message:','avia_framework' ) . ' </strong> '; $mess .= $message; if( ! empty( $this->form_params['autoresponder_after'] ) ) { $mess .= ' '; $mess .= nl2br( $this->form_params['autoresponder_after'] ) . ' '; }The function nl2br automatically create br tags after any new lines, so removing it should help. Best regards, 
 IsmaelSeptember 13, 2021 at 5:44 pm #1320777Dear Ismael, 
 your solution works.Thanks. 
 Best regards,
 Jo
- 
		AuthorPosts
- The topic ‘Contact form – responder email – line break’ is closed to new replies.
