Left margin on certain fields

Created on 5 February 2016, almost 9 years ago
Updated 26 January 2023, almost 2 years ago

Hi,

I use Views PDF 1.5 on a Drupal 7.41 installation.

I rewrite all my fields to a sign global text field for easier column positioning.
Some of the rewritten fields like [field_hebt_no_auto_3] are rendered with an undesired left margin (please see PDF attached)

Here is the code of my global text field :

[field_user_categorie] : [field_hebt_no_auto_1]

[field_rallye_logos_etq_val]

[field_insc_pilote]

[field_insc_copilote]

[field_hebt_no_auto_3]

[field_hebt_hebergement]

[php]

Here is the code of my field_hebt_no_auto_3 Display Suite code field :

// Multilingual values
$value = '';
// Chargement de la langue
$lang = get_user_language ($entity);
if (strpos($lang, 'Français') !== false) {
$value = 'Classe : ';
}
elseif (strpos($lang, 'Anglais') !== false)  {
$value = 'Class: ';
}

print "[node:field-insc-auto:field-vhc-marque] [node:field-insc-auto:field-vhc-modele] - [node:field-insc-auto:field-vhc-annee:custom:Y] / " . $value . "[node:field_insc_classe]"

Any idea ?

🐛 Bug report
Status

Closed: outdated

Version

1.5

Component

Code

Created by

🇫🇷France misterpo

Live updates comments and jobs are added and updated live.
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