Yeah, we've always had it, believe it or not--it's a pretty-printer for the generated XML/HTML.


On Feb 5, 2013, at 6:39 PM, Mike Wescott <notifications@github.com> wrote:

> In main/templates/exams/quizdown.js:
> 
> > +            else if ($(this).is("h1") && $(this).text().trim().toUpperCase() == "VIDEO TIMES") {
> > +                videoAssoc.append($(this).clone());
> > +                videoAssoc.append($(this).nextUntil("h1").clone());
> > +            }
> > +
> > +         });
> > +
> > +    //Now parse each question, using the DOM already in the staging area
> > +    $("#staging-area div.question").each( function() { qnum += 1; parseQuestion(this, qnum); });
> > +    
> > +    
> > +    //Now associate videos
> > +    parseVideoAssoc(videoAssoc);
> > +    
> > +    editor.setValue(style_html($("#staging-area").html(), {'max_char':80}));
> > +    metadata_editor.setValue(style_html(outer_mDOM.html(), {'max_char':80}));
> I see style_html is in beautify-html.js...did you add that in a previous commit for the xml import? Just curious. Never noticed it before.
> 
> —
> Reply to this email directly or view it on GitHub.
> 
>