src/share/classes/com/sun/tools/doclets/formats/html/SourceToHTMLConverter.java

changeset 1737
7a9ef837e57f
parent 1410
bfec2a1cc869
child 1748
051b728cfe90
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/SourceToHTMLConverter.java	Tue May 14 10:14:52 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/SourceToHTMLConverter.java	Tue May 14 10:14:52 2013 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -58,7 +58,7 @@
    1.11      /**
    1.12       * New line to be added to the documentation.
    1.13       */
    1.14 -    private static final Content NEW_LINE = new RawHtml(DocletConstants.NL);
    1.15 +    private static final String NEW_LINE = DocletConstants.NL;
    1.16  
    1.17      private final ConfigurationImpl configuration;
    1.18  
    1.19 @@ -271,8 +271,7 @@
    1.20          if (line != null) {
    1.21              StringBuilder lineBuffer = new StringBuilder(line);
    1.22              Util.replaceTabs(configuration, lineBuffer);
    1.23 -            Util.escapeHtmlChars(lineBuffer);
    1.24 -            pre.addContent(new RawHtml(lineBuffer.toString()));
    1.25 +            pre.addContent(lineBuffer.toString());
    1.26              Content anchor = HtmlTree.A_NAME("line." + Integer.toString(currentLineNo));
    1.27              pre.addContent(anchor);
    1.28              pre.addContent(NEW_LINE);

mercurial