πŸ‡³πŸ‡±Netherlands @hanskuipers

Account created on 26 October 2023, 9 months ago
#

Recent comments

πŸ‡³πŸ‡±Netherlands hanskuipers

This seems to work, replace the original


      $yvar = "y_$h_f";
      $this->writeHTMLCell(0, 0,
        (float)$this->lMargin, (float)$this->$yvar,
        format_string($rendered, array('!page' => $this->getPage())),
        0, 0,
        FALSE, TRUE,
        $display->getOption("{$h_f}_text_align")
      );

with this

      $yvar = "y_$h_f";
      $renderer = \Drupal::service('renderer');
      $html = $renderer->render($rendered);
      $markup = new  \Drupal\Component\Render\FormattableMarkup($html, array('!page' => $this->getPage()));
      $this->writeHTMLCell(0, 0,
        (float)$this->lMargin, (float)$this->$yvar,
        $markup->__toString(),
        //format_string($rendered, array('!page' => $this->getPage())),
        0, 0,
        FALSE, TRUE,
        $display->getOption("{$h_f}_text_align")
      );

Production build 0.69.0 2024