Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default header and footer aren't styleable #1172

Open
CendioOssman opened this issue Jul 10, 2023 · 1 comment
Open

Default header and footer aren't styleable #1172

CendioOssman opened this issue Jul 10, 2023 · 1 comment

Comments

@CendioOssman
Copy link

It's not possible to control the look of the default header or footer as they have no class to match on.

Description of problem
There are the classes "header" and "footer" in styles.style, but they do not seem to be used. I added some debug prints to the code, and this is the object generated for the default header:

[Paragraph(
'caseSensitive': 1
'encoding': 'utf8'
'text': '###Section###'
'frags': [ParaFrag(__tag__='para', bold=0, fontName='Mulish-Regular', fontSize=10.0, greek=0, italic=0, link=[], rise=0, text='###Section###', textColor=Color(0,0,0,1), us_lines=[])]
'style': <ParagraphStyle 'bodytext'>
'bulletText': None
'debug': 0
'width': 481.88976377952764
'_wrapWidths': [481.88976377952764, 481.88976377952764]
'_width_max': 70.06
'height': 12
'_splitLongWordCount': 0
'_hyphenations': 0
'blPara': ParaFrag(__tag__='para', ascent=10.05, bold=0, descent=-2.5, fontName='Mulish-Regular', fontSize=10.0, greek=0, italic=0, kind=0, lines=[(411.82976377952764, ['###Section###'])], link=[], rise=0, text='###Section###', textColor=Color(0,0,0,1), us_lines=[])
) #Paragraph]

As you can see, the style is the very generic bodytext, and not something specific.

What is the expected output? What do you see instead?

🖥 Versions
Python 3.6.12
rst2pdf 0.98
reportlab 3.6.1
sphinx 4.2.0

@lornajane
Copy link
Contributor

Thanks for opening this issue, this would be very nice to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants