Skip to content

Commit c71f4b5

Browse files
To Do Description Paragraph Formating
- Now if user wants to use the enter key and make a description that has multiple lines they can
1 parent cf32bef commit c71f4b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/taskView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ async function populateTasks(tasks, status){
120120

121121
const toDoText_el = document.createElement('p');
122122
toDoText_el.classList.add('to-do-text');
123+
toDoText_el.style.whiteSpace = 'pre-line';
123124
toDoText_el.textContent = element.taskDescription;
124125

125126
const completeDateText_el = document.createElement('h5');

0 commit comments

Comments
 (0)