langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/RawHtml.java
author jjg
Mon, 22 Aug 2016 16:32:40 -0700
changeset 40587 1c355ea550ed
parent 40303 96a1226aca18
child 44297 e03f5fb3714b
permissions -rw-r--r--
8164130: Simplify doclet IOException handling Reviewed-by: bpatel, ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     1
/*
36500
d31e4986dc8b 8149139: [javadoc] Modify Content to accept CharSequence
ksrini
parents: 35426
diff changeset
     2
 * Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     4
 *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    10
 *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    15
 * accompanied this code).
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    16
 *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    20
 *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    23
 * questions.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    24
 */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    25
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    26
package jdk.javadoc.internal.doclets.formats.html.markup;
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    27
14265
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
    28
import java.io.IOException;
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
    29
import java.io.Writer;
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
    30
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    31
import jdk.javadoc.internal.doclets.toolkit.Content;
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 25874
diff changeset
    32
import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants;
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    33
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    34
/**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    35
 * Class for generating raw HTML content to be added to HTML pages of javadoc output.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    36
 *
14260
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 7614
diff changeset
    37
 *  <p><b>This is NOT part of any supported API.
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 7614
diff changeset
    38
 *  If you write code that depends on this, you do so at your own risk.
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 7614
diff changeset
    39
 *  This code and its internal interfaces are subject to change or
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 7614
diff changeset
    40
 *  deletion without notice.</b>
727a84636f12 8000665: fix "internal API" comments on javadoc files
jjg
parents: 7614
diff changeset
    41
 *
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    42
 * @author Bhavesh Patel
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    43
 */
17560
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
    44
public class RawHtml extends Content {
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    45
40303
96a1226aca18 8160697: HTMLWriter needs perf cleanup
jjg
parents: 36500
diff changeset
    46
    private final String rawHtmlContent;
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    47
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    48
    public static final Content nbsp = new RawHtml("&nbsp;");
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    49
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    50
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    51
     * Constructor to construct a RawHtml object.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    52
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    53
     * @param rawHtml raw HTML text to be added
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    54
     */
36500
d31e4986dc8b 8149139: [javadoc] Modify Content to accept CharSequence
ksrini
parents: 35426
diff changeset
    55
    public RawHtml(CharSequence rawHtml) {
d31e4986dc8b 8149139: [javadoc] Modify Content to accept CharSequence
ksrini
parents: 35426
diff changeset
    56
        rawHtmlContent = rawHtml.toString();
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    57
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    58
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    59
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    60
     * This method is not supported by the class.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    61
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    62
     * @param content content that needs to be added
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    63
     * @throws UnsupportedOperationException always
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    64
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    65
    public void addContent(Content content) {
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    66
        throw new UnsupportedOperationException();
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    67
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    68
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    69
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    70
     * This method is not supported by the class.
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    71
     *
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    72
     * @param stringContent string content that needs to be added
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    73
     * @throws UnsupportedOperationException always
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    74
     */
36500
d31e4986dc8b 8149139: [javadoc] Modify Content to accept CharSequence
ksrini
parents: 35426
diff changeset
    75
    @Override
d31e4986dc8b 8149139: [javadoc] Modify Content to accept CharSequence
ksrini
parents: 35426
diff changeset
    76
    public void addContent(CharSequence stringContent) {
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    77
        throw new UnsupportedOperationException();
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    78
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    79
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    80
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    81
     * {@inheritDoc}
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    82
     */
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    83
    public boolean isEmpty() {
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    84
        return rawHtmlContent.isEmpty();
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    85
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    86
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    87
    /**
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    88
     * {@inheritDoc}
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
    89
     */
17560
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
    90
    @Override
14265
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
    91
    public String toString() {
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
    92
        return rawHtmlContent;
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
    93
    }
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
    94
22163
3651128c74eb 8030244: Update langtools to use Diamond
briangoetz
parents: 19667
diff changeset
    95
    private enum State { TEXT, ENTITY, TAG, STRING }
17560
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
    96
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
    97
    @Override
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
    98
    public int charCount() {
17564
c329fe11193d 8011288: Erratic/inconsistent indentation of signatures
jjg
parents: 17560
diff changeset
    99
        return charCount(rawHtmlContent);
c329fe11193d 8011288: Erratic/inconsistent indentation of signatures
jjg
parents: 17560
diff changeset
   100
    }
c329fe11193d 8011288: Erratic/inconsistent indentation of signatures
jjg
parents: 17560
diff changeset
   101
36500
d31e4986dc8b 8149139: [javadoc] Modify Content to accept CharSequence
ksrini
parents: 35426
diff changeset
   102
    static int charCount(CharSequence htmlText) {
17560
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   103
        State state = State.TEXT;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   104
        int count = 0;
17564
c329fe11193d 8011288: Erratic/inconsistent indentation of signatures
jjg
parents: 17560
diff changeset
   105
        for (int i = 0; i < htmlText.length(); i++) {
c329fe11193d 8011288: Erratic/inconsistent indentation of signatures
jjg
parents: 17560
diff changeset
   106
            char c = htmlText.charAt(i);
17560
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   107
            switch (state) {
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   108
                case TEXT:
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   109
                    switch (c) {
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   110
                        case '<':
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   111
                            state = State.TAG;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   112
                            break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   113
                        case '&':
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   114
                            state = State.ENTITY;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   115
                            count++;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   116
                            break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   117
                        default:
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   118
                            count++;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   119
                    }
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   120
                    break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   121
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   122
                case ENTITY:
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   123
                    if (!Character.isLetterOrDigit(c))
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   124
                        state = State.TEXT;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   125
                    break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   126
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   127
                case TAG:
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   128
                    switch (c) {
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   129
                        case '"':
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   130
                            state = State.STRING;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   131
                            break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   132
                        case '>':
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   133
                            state = State.TEXT;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   134
                            break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   135
                    }
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   136
                    break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   137
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   138
                case STRING:
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   139
                    switch (c) {
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   140
                        case '"':
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   141
                            state = State.TAG;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   142
                            break;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   143
                    }
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   144
            }
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   145
        }
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   146
        return count;
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   147
    }
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 14265
diff changeset
   148
14265
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
   149
    /**
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
   150
     * {@inheritDoc}
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
   151
     */
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
   152
    @Override
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
   153
    public boolean write(Writer out, boolean atNewline) throws IOException {
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
   154
        out.write(rawHtmlContent);
4e8e488eeae0 8000666: javadoc should write directly to Writer instead of composing strings
jjg
parents: 14260
diff changeset
   155
        return rawHtmlContent.endsWith(DocletConstants.NL);
7614
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
   156
    }
cfadc977ca75 6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
diff changeset
   157
}