PavelS0 / docx_template_dart

A Docx template engine
Apache License 2.0
40 stars 20 forks source link

there is an extra line break at the end, if text has line breaks (with solution) #52

Open GeraldGZ opened 4 months ago

GeraldGZ commented 4 months ago

file: view.dart

function; void _updateRText(....

Line 149: r.children.insert(pasteIndex++, _brElement());

must be changed to: if (l != lines.last) { r.children.insert(pasteIndex++, _brElement()); }