Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When attempting to print a Coder page, the
tags do not wrap and run off the screen. This should wrap _only_ on print, using the print CSS media type.
Comment | File | Size | Author |
---|---|---|---|
#1 | add-print-css-1094606-1.patch | 1.11 KB | erikwebb |
Comments
Comment #1
erikwebb CreditAttribution: erikwebb commentedPatch adds coder.print.css with style to reformat
Comment #2
cashwilliams CreditAttribution: cashwilliams commentedLooks good to me. Patch still applies to 6.x-2.x branch.
Comment #3
douggreen CreditAttribution: douggreen commentedComment #4
douggreen CreditAttribution: douggreen commentedI tried updating this to the #attached syntax, and printed before and after, and saw no difference. Maybe I have the #attached wrong. Or maybe chrome is handling this for me already. Can you update this in the 7.x-2.x branch ... and provide a step-by-step test case.
I tried:
+ $form['#attached']['css'][] = array("$path/coder_review.print.css" => array('media' => 'print'));
See
Comment #5
klausiCoder 7.x is frozen now and will not receive updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.