Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HtmlToXmlJavadocLexer (0.14 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/HtmlToXmlJavadocLexer.java

    /**
     * Normalises and cleans up HTML to convert it to XML semantics.
     */
    public class HtmlToXmlJavadocLexer implements JavadocLexer {
        private final JavadocLexer lexer;
        private final Set<String> blockElements = new HashSet<String>();
        private final Set<String> blockContent = new HashSet<String>();
    
        public HtmlToXmlJavadocLexer(JavadocLexer lexer) {
            this.lexer = lexer;
            blockElements.add("p");
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.8K bytes
    - Viewed (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/HtmlToXmlJavadocLexerTest.groovy

            "text<h2>header</h2>text"   | "<p>text</p><h2>header</h2><p>text</p>"
        }
    
        def parse(String source) {
            def lexer = new HtmlToXmlJavadocLexer(new BasicJavadocLexer(new JavadocScanner(source)))
            def result = new StringBuilder()
            lexer.visit(new JavadocLexer.TokenVisitor() {
                @Override
                void onStartHtmlElement(String name) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.5K bytes
    - Viewed (0)
Back to top