Я работаю над dompdf с laravel. Я хотел бы сделать подчеркивание для всех строк текста с уже выровненным межсловным пространством. Ниже мой контроллер.
public function Generate()
{
$body = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit,
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia';
$data = ['title' => 'DomPDF with Laravel', 'body' => $body];
$pdf = PDF::loadView('pdf', $data);
return $pdf->download('itsolutionstuff.pdf');
}
и ниже - вид лезвия pdf.
<style>
.justifycenter {
text-align: justify;
text-justify: inter-word;
}
.underline{
border-bottom: 1px dotted;
width: 100%;
display: block;
}
.lineheight1_6{
line-height: 1.6;
}
</style>
</head>
<body>
<h1>{{ $title }}</h1>
<p class="justifycenter underline lineheight1_6">{{$body}}</p>
</body>
И это результат, только последняя строка которого подчеркнута. ![enter image description here](https://i.stack.imgur.com/1p6oy.png)
Мы будем очень благодарны за любые советы или рекомендации по этому поводу, спасибо.