A customer asks:
Is there a way to show the comments text on the invoice details with line breaks? It seems all the text becomes one line without line breaks even we type it with line breaks when creating the invoice. The line breaks works only if view as PDF.
The solution:
To maintain the line breaks in comments in the read-only view, find line 66 in /controls/invoice.aspx.vb, which reads:
comments.Text = dr("comments")
And replace it with:
comments.Text = dr("comments").Replace(Microsoft.VisualBasic.ControlChars.Lf, "<br />")
This modification will be included in the next release of DNI.
---
Rob
DotNetInvoice Support