Remove line breaks in task formatting

This commit is contained in:
Hillel Coren 2022-02-02 12:55:36 +02:00
parent fbed8bd832
commit 0a513aba8d
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -34,7 +34,7 @@ InvoiceItemEntity convertTaskToInvoiceItem({
if (state.company.invoiceTaskDatelog || state.company.invoiceTaskTimelog) {
if (notes.trim().isNotEmpty) {
notes += '\n\n';
notes += '\n';
}
task
.getTaskTimes()