tillsc / GVExport

Repository for GVExport module for Webtrees
GNU General Public License v2.0
3 stars 2 forks source link

Request: nickname in quotation marks #7

Open TheDutchJewel opened 2 years ago

TheDutchJewel commented 2 years ago

For individuals with a nickname, it is not clear what the nickname is and what the first name(s).

For example, if a person's name is John Doe and the nickname is Edward, this is shown as John Edward Doe.

It would be clearer if the nickname was put in quotation marks: John "Edward" Doe.

Can you make this possible?

Neriderc commented 2 years ago

I've just been wrestling with this myself, and have managed to get it working.

If you open the file /modules_v4/GVExport/functions_dot.php Then go to around line 630 and look for: $name = strip_tags($name) Then immediately before this line, add this: $name = str_replace(array('<q class="wt-nickname">','</q>'), array('"','"'), $name);

Then this has fixed it for me (Webtrees 2.0)

I have opened a pull request to have this added to the main code.