httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1335608 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Date Tue, 08 May 2012 16:09:59 GMT
Author: humbedooh
Date: Tue May  8 16:09:59 2012
New Revision: 1335608

URL: http://svn.apache.org/viewvc?rev=1335608&view=rev
Log:
Is this a proper fix? :\

Modified:
    httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Modified: httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/common.xsl?rev=1335608&r1=1335607&r2=1335608&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl Tue May  8 16:09:59 2012
@@ -297,11 +297,12 @@ to last beyond the testing phase of this
 <script type="text/javascript">
 <xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--]]></xsl:text>
 var lang = '<xsl:value-of select="$doclang"/>';
+<xsl:text disable-output-escaping="yes"><![CDATA[
 var disqus_shortname = 'httpd';
 var disqus_identifier = window.location.href.replace(/(current|trunk)/, "2.4").replace(/\/[a-z]{2}\//,
"/").replace(window.location.protocol, "http:") + '.' + lang;
 if (disqus_identifier.indexOf("httpd.apache.org") != -1) {
-    document.write('<div id="disqus_thread">\n</div>');
     (function() {
+                document.write('<div id="disqus_thread">&nbsp;<\/div>');
                 var dsq = document.createElement('script'); dsq.type = 'text/javascript';
dsq.async = true;
                 dsq.src = window.location.protocol + '//' + disqus_shortname + '.disqus.com/embed.js';
             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
@@ -309,7 +310,7 @@ if (disqus_identifier.indexOf("httpd.apa
 } else {
     document.write("Comments have been disabled for offline viewing.");
 }
-<xsl:text disable-output-escaping="yes"><![CDATA[//--><!]]]]>></xsl:text></script>
+]]><![CDATA[//--><!]]]]>></xsl:text></script>
 </div>
 </xsl:when>
 </xsl:choose>



Mime
View raw message