Skip to content

Commit

Permalink
Merge pull request #376 from jobsofferings/feature_copilet_return_text
Browse files Browse the repository at this point in the history
Handle an issue where the returned content is not properly handled with line feeds
  • Loading branch information
User782Tec authored Jan 24, 2024
2 parents a850c66 + af5676d commit 30ac316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -2910,7 +2910,7 @@ function widgetsMove(elt, e) {
}
function decodeHtml(s) {
$('#translater').text(s);
return $('#translater').html().replace('\n', '<br>').replace(' ', '&nbsp;');
return $('#translater').html().replace(/\n/g, '<br>').replace(/ /g, '&nbsp;');
}
let copilot = {
history: [],
Expand Down

0 comments on commit 30ac316

Please sign in to comment.