some more docs for attribute export and cleanup empty lines

pull/2032/head
webzwo0i 2013-12-08 11:34:11 +01:00
parent 70c51d731b
commit a534b1ec22
1 changed files with 17 additions and 13 deletions

View File

@ -168,6 +168,8 @@ function getHTMLFromAtext(pad, atext, authorColors)
return false; return false;
} }
// is called when an attribute is in ENTER or STAY state and saves
// a reference to it so it can be closed in order
function emitOpenTag(i) function emitOpenTag(i)
{ {
openTags.unshift(i); openTags.unshift(i);
@ -184,6 +186,8 @@ function getHTMLFromAtext(pad, atext, authorColors)
} }
} }
// this closes an open tag and removes its reference from openTags
// it is not directly called but via orderdCloseTags
function emitCloseTag(i) function emitCloseTag(i)
{ {
openTags.shift(); openTags.shift();