@@ -210,11 +210,11 @@ UI.pad.manageParticipation = function (
210210 return table
211211}
212212
213- /* Get the chunbks of the noepad
214- *
215- * They are stored in a RDF linked list
216- */
217- export function getChunks ( subject , kb ) {
213+ /**
214+ * Get the chunks of the notepad
215+ * They are stored in a RDF linked list
216+ */
217+ function getChunks ( subject , kb ) {
218218 var chunks = [ ]
219219 for (
220220 let chunk = kb . the ( subject , PAD ( 'next' ) ) ;
@@ -226,9 +226,10 @@ export function getChunks (subject, kb) {
226226 return chunks
227227}
228228
229- /** Encode content to be put in XML or HTML elements
230- */
231- export function xmlEncode ( str ) {
229+ /**
230+ * Encode content to be put in XML or HTML elements
231+ */
232+ function xmlEncode ( str ) {
232233 return str . replace ( '&' , '&' ) . replace ( '<' , '<' ) . replace ( '>' , '>' )
233234}
234235
@@ -259,7 +260,7 @@ export function notePadToHTML (pad, kb) {
259260 const rawContent = kb . anyJS ( chunk , ns . sioc ( 'content' ) )
260261 if ( ! rawContent ) return // seed chunk is dummy
261262 const content = xmlEncode ( rawContent )
262- if ( indent < 0 ) { // negative indent levels represenmt heading levels
263+ if ( indent < 0 ) { // negative indent levels represent heading levels
263264 decreaseLevel ( 0 )
264265 const h = indent >= - 3 ? 4 + indent : 1 // -1 -> h4, -2 -> h3
265266 html += `\n<h${ h } >${ content } </h${ h } >\n`
0 commit comments