.$class("toggle-content").pre()._(message)._()._()._(); } else { cell.pre()._(message)._()._();
@Test public void testPreformatted() { Hamlet h = newHamlet(). div(). i("inline before pre"). pre(). _("pre text1\npre text2"). i("inline in pre"). _("pre text after inline")._(). i("inline after pre")._(); PrintWriter out = h.getWriter(); out.flush(); assertEquals(5, h.indents); }
@Test public void testPreformatted() { Hamlet h = newHamlet(). div(). i("inline before pre"). pre(). _("pre text1\npre text2"). i("inline in pre"). _("pre text after inline")._(). i("inline after pre")._(); PrintWriter out = h.getWriter(); out.flush(); assertEquals(5, h.indents); }
@Override protected void render(Page.HTML<_> html) { set(JQueryUI.ACCORDION_ID, "msg"); String title = "Sorry, got error "+ status(); html. title(title). link(root_url("static","yarn.css")). _(JQueryUI.class). // an embedded sub-view style("#msg { margin: 1em auto; width: 88%; }", "#msg h1 { padding: 0.2em 1.5em; font: bold 1.3em serif; }"). div("#msg"). h1(title). div(). _("Please consult"). a("http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "RFC 2616")._(" for meanings of the error code.")._(). h1("Error Details"). pre(). _(errorDetails())._()._()._(); }
@Override protected void render(Page.HTML<_> html) { set(JQueryUI.ACCORDION_ID, "msg"); String title = "Sorry, got error "+ status(); html. title(title). link(root_url("static","yarn.css")). _(JQueryUI.class). // an embedded sub-view style("#msg { margin: 1em auto; width: 88%; }", "#msg h1 { padding: 0.2em 1.5em; font: bold 1.3em serif; }"). div("#msg"). h1(title). div(). _("Please consult"). a("http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "RFC 2616")._(" for meanings of the error code.")._(). h1("Error Details"). pre(). _(errorDetails())._()._()._(); }
@Override public PRE<DIV<T>> pre(String selector) { return setSelector(pre(), selector); }
@Test public void testPreformatted() { Hamlet h = newHamlet(). div(). i("inline before pre"). pre(). _("pre text1\npre text2"). i("inline in pre"). _("pre text after inline")._(). i("inline after pre")._(); PrintWriter out = h.getWriter(); out.flush(); assertEquals(5, h.indents); }
protected void doRender(Hamlet html) { html. div("cluster_json"). h2("JSON Cluster Specification"). pre(). _(getJson())._()._(); }
@Override public PRE<DIV<T>> pre(String selector) { return setSelector(pre(), selector); }
protected void doRender(Hamlet html) { html. div("cluster_json"). h2("JSON Cluster Specification"). pre(). _(getJson())._()._(); }
@Override public PRE<DIV<T>> pre(String selector) { return setSelector(pre(), selector); }