HtmlFormatter improvements

Created on 7 November 2024, 16 days ago

Problem/Motivation

On testing a PDF-document had a data type "EmailAddress" which resolved to an error message. Furthermore the formatType() method in HtmlFormatter.php:63 misses a default return value.

Steps to reproduce

Ingest a PDF with a dedicated email address to trigger the data type EmailAddress-error.

Proposed resolution

Add:

case 'EmailAddress':
        return '<a href="mailto:' . $data['text'] . '">' . $data['text'] . '</a>';

and also a default return value like:

    return $data['text'];
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇹Austria roromedia Linz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024