You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-10-18 22:41:56

KRP
Member
Registered: 2019-10-08
Posts: 34

Formatting Ticket Template - Too much white space

GLPI v9.4.4

I have made and testing a custom notification template (not to mess with the default one) for tickets and I started with a copy of the default one.
I have the content I want but it appears that every line, including opening & closing of IF, ELSE, FOREACH statements adds a new line of white space to the email. So what gets to the user/tech is filled with unwanted returns between lines.
I have taken out all of the unneeded manual returns and tried to combine sections on one line but it appears to be a limit to how long a line can be we see the following.

Title:  Testing templates - 05 
Requesters:   Bill Smith 
Opening date:  2019-10-18 13:16 
Closing date:   
Request source:  Helpdesk




Status:  New
Urgency:  Medium


Category:  Application Issue > Error 

Number of followups:  1

[2019-10-18 13:29] Private:  No 
Writer:  Joe Blow
Opening date:  2019-10-18 13:29
Request source:  Helpdesk
Description:  
followup 1


Number of tasks:  0

When we are trying to condense it a bit more to be like;

Title:  Testing templates - 05 
Requesters:   krptest Test 
Opening date:  2019-10-18 13:16 
Closing date:   
Request source:  Helpdesk
Status:  New
Urgency:  Medium
Category:  Application Issue > Error 

Number of followups:  1

[2019-10-18 13:29] Private:  No 
Writer:  Joe Blow
Opening date:  2019-10-18 13:29
Request source:  Helpdesk
Description:  
followup 1

Number of tasks:  0

If there is not a simple solution we may scrap a lot of the template to so that its format is a bit better without all the extra spacing/returns.

Offline

#2 2023-01-02 09:47:39

b-next-com
Member
Registered: 2022-12-28
Posts: 14

Re: Formatting Ticket Template - Too much white space

where did you change the ticket content, which template or file is it?

regards

Offline

Board footer

Powered by FluxBB