prevent extra \n at end of single notes #3010
This commit is contained in:
parent
01efcf2d92
commit
8a97ad58b0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -104,11 +104,7 @@ export default class Notes {
|
||||||
// ... or using <aside class="notes"> elements
|
// ... or using <aside class="notes"> elements
|
||||||
let notesElements = slide.querySelectorAll( 'aside.notes' );
|
let notesElements = slide.querySelectorAll( 'aside.notes' );
|
||||||
if( notesElements ) {
|
if( notesElements ) {
|
||||||
let notes = "";
|
return Array.from(notesElements).map( notesElement => notesElement.innerHTML ).join( '\n' );
|
||||||
for (let i = 0; i < notesElements.length; i++) {
|
|
||||||
notes += notesElements[i].innerHTML + "\n";
|
|
||||||
}
|
|
||||||
return notes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue