Closed (works as designed)
Project:
Printer, email and PDF versions
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2012 at 11:49 UTC
Updated:
19 Mar 2013 at 17:23 UTC
from print.module (lines 408-419)
if ($view_mode == 'full') {
// Insert content corner links
$node->content['print_links'] = array(
'#prefix' => '<span class="print-link">',
'#markup' => '',
'#suffix' => '</span>',
'#weight' => -101,
);
if (!empty($print_html_link_pos['corner'])) {
$node->content['print_links']['#markup'] .= print_insert_link(NULL, $node);
}
}
Comments
Comment #1
jcnventuraHi,
Yes, this is a known "feature" which got fixed in #835814: Markup is in #value, should be in #prefix/#suffix for Drupal 6, but Drupal 7 brought it back again.. It originally started as #451408: Empty span element.
I've fixed it once and for all, in the new 7.x-2.x branch, but that one isn't ready for deployment yet. If you're not using the "content corner" option, I'd recommend removing it in CSS for now.
Comment #2
ramsegal commentedThanks for your reply!
So i guess i can safely merge only this specific fix, and when time comes the new branch will address this issue..
Right?
Thanks,
Ram
Comment #3
jcnventuraNo, the reason why I can't fix it at all in 7.x-1.x is that the module needed a refactoring in order to do that.. All the link stuff is now handled by a single module, so there's a single function that decides whether there's anything in the corner. In the 6.x-1.x and 7.x-1.x branches, there's 3 functions (html, mail and pdf) each one deciding to add something to it.
And please don't use 7.x-2.x yet... It's a work in progress..
Comment #4
ramsegal commentedThanks, so i'll leave it as is for now.
When do u estimate the 7.x-2.0 branch will be out?
Comment #5
jcnventuraSoon(ish).. I can't commit to a specific date, as this is all in my spare time.
I'll do a 7.x-2.0-beta1 first to get some user feedback.. The modules have all been gutted and optimized. I also want to add at least one new PDF library and EPUB export, but those can wait for beta2.
Comment #6
ramsegal commentedCan't wait! thanks a lot!
Comment #7
anybodyThanks a lot for that. We've got the same problem and will hide in via CSS until the new version is ready. We've looking forward to that :)
Comment #7.0
anybodyremoved