diff --git a/resources/views/business/pdf/courier-quote.blade.php b/resources/views/business/pdf/courier-quote.blade.php index 82bd66ec..58071637 100644 --- a/resources/views/business/pdf/courier-quote.blade.php +++ b/resources/views/business/pdf/courier-quote.blade.php @@ -43,7 +43,9 @@
@php $mixedText = static function ($value): string { - $parts = preg_split('/([\x20-\x7E]+)/', (string) $value, -1, PREG_SPLIT_DELIM_CAPTURE) ?: []; + // Spreadsheet-pasted whitespace has no glyph in the CJK font. + $text = str_replace(["\r\n", "\r", "\t", "\u{00A0}"], ["\n", "\n", ' ', ' '], (string) $value); + $parts = preg_split('/([\x20-\x7E]+)/', $text, -1, PREG_SPLIT_DELIM_CAPTURE) ?: []; return implode('', array_map(static function (string $part): string { $escaped = e($part); @@ -57,7 +59,7 @@{!! $mixedText($version->carrier_name) !!} · {!! $mixedText($version->quote_type) !!}
+{!! $mixedText($version->carrier_name) !!} · {!! $mixedText($version->quote_type) !!}