Printing a page using printable.module - rendering error

Created on 28 March 2021, over 3 years ago
Updated 22 February 2024, 10 months ago

Problem/Motivation

I am trying out the printing of a page using printable.module. However the text

li {
display: inline;
margin-right: 5px;
}
is printed above the widget and "Print". This text - obviously css - isn't enclosed in any

markup. Thus it simply gets printed as is...

Looking into the matter, I find that (in MY case) this is an issue within printable.module. In function pintable_entity_view(...) lines 223 ff. look like this:

$build['printable_navigation'] = [
'#markup' => '

' . $renderer->render($printable_navigation) . '

',
'#attached' => [
'library' => ['printable/entity-links'],
],
'#weight' => 100,
'#cache' => [
'tags' => $entity->getEntityType()->getListCacheTags(),
],
];
It seems to me that maybe the variable $printable_navigation doesn't contain the right markup.

Steps to reproduce

Install and activate the printable module and select some node type

Proposed resolution

enclose the "li {...} specification within

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇦🇹Austria hstoellinger Salzburg

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024