Remove line breaks in task formatting
This commit is contained in:
parent
fbed8bd832
commit
0a513aba8d
|
|
@ -56,9 +56,9 @@ List<InvoiceItemEntity> convertProjectToInvoiceItem({
|
|||
var item = convertExpenseToInvoiceItem(expense: expense, context: context);
|
||||
|
||||
if (i == 0) {
|
||||
String notes = '## ${project.name}\n\n';
|
||||
String notes = '## ${project.name}\n';
|
||||
if (project.publicNotes.isNotEmpty) {
|
||||
notes += '${project.publicNotes}\n\n';
|
||||
notes += '${project.publicNotes}\n';
|
||||
hasShownNotes = true;
|
||||
}
|
||||
notes += item.notes;
|
||||
|
|
@ -73,9 +73,9 @@ List<InvoiceItemEntity> convertProjectToInvoiceItem({
|
|||
var item = convertTaskToInvoiceItem(task: task, context: context);
|
||||
|
||||
if (i == 0) {
|
||||
String notes = '## ${project.name}\n\n';
|
||||
String notes = '## ${project.name}\n';
|
||||
if (project.publicNotes.isNotEmpty && !hasShownNotes) {
|
||||
notes += '${project.publicNotes}\n\n';
|
||||
notes += '${project.publicNotes}\n';
|
||||
}
|
||||
notes += item.notes;
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ InvoiceItemEntity convertTaskToInvoiceItem({
|
|||
|
||||
if (state.company.invoiceTaskDatelog || state.company.invoiceTaskTimelog) {
|
||||
if (notes.trim().isNotEmpty) {
|
||||
notes += '\n\n';
|
||||
notes += '\n';
|
||||
}
|
||||
task
|
||||
.getTaskTimes()
|
||||
|
|
|
|||
Loading…
Reference in New Issue