How to add new line in PDF stylesheet

Prajakta Ashok Ganage October 11, 2018

Hi,

I want to break some text in stylesheet CSS so that when I export PDF, the footer should display 2 sentences on separate lines.

Here is my code :

@page {
@bottom-center {
content: " This is line 1 \A This is line 2, Copyright©2018 ";
font-size:8pt;
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
}}

at the place of \A I tried other options like \n, Shift+Enter etc,but  none of them working.

Can someone please help me to achieve this outcome ?

 

1 answer

1 accepted

0 votes
Answer accepted
roman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2018

HI @Prajakta Ashok Ganage,

have you tried using <br />?

Roman.

Prajakta Ashok Ganage October 16, 2018

Hi @roman,

Yes, I've tried <br/>, \n etc.. It  doesn't work

roman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2018

@Prajakta Ashok Ganage,

this worked for me:

@page {
@bottom-center {
content: "This is line 1 \AThis is line 2, Copyright©2018 ";
white-space: pre;
font-size:8pt;
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
}}

Screenshot 2018-10-24 at 10.27.02.png

Prajakta Ashok Ganage October 24, 2018

@roman 

Thank you so much.. It worked now !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events