Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit aa844e7

Browse files
Fix typos and indentation in comments
1 parent 65e60f0 commit aa844e7

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/pad.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
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

Comments
 (0)