You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/05/08 17:20:08 UTC

svn commit: r1335581 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Author: humbedooh
Date: Tue May  8 15:20:07 2012
New Revision: 1335581

URL: http://svn.apache.org/viewvc?rev=1335581&view=rev
Log:
Add something between <div> and </div> so the same thing doesn't happen again. bleh.

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=1335581&r1=1335580&r2=1335581&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl Tue May  8 15:20:07 2012
@@ -299,8 +299,8 @@ to last beyond the testing phase of this
 var lang = '<xsl:value-of select="$doclang"/>';
 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"></div>');
+if (disqus_identifier.indexOf("httpd.apache.org") == -1) {
+    document.write('<div id="disqus_thread">\n</div>');
     (function() {
                 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
                 dsq.src = window.location.protocol + '//' + disqus_shortname + '.disqus.com/embed.js';



Re: svn commit: r1335581 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Posted by André Malo <nd...@perlig.de>.
* Daniel Gruno wrote:

> The cdata container was turning the whole thing into &lt;div&gt;, and
> now I can't figure out how to re-add it without making the whole thing
> explode.
>
> I'm about to shoot myself in the head, can you please please fix this
> for me, so I don't cause serious bodily harm?

Oh crap. I actually forgot how messy XSLT can be. *sigh*

Been there, fixed that. Hope, it still works :-)

nd
-- 
Wenn nur Ingenieure mit Diplom programmieren würden, hätten wir
wahrscheinlich weniger schlechte Software.
Wir hätten allerdings auch weniger gute Software.
                                   -- Felix von Leitner in dasr

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: svn commit: r1335581 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Posted by Daniel Gruno <ru...@cord.dk>.
On 08-05-2012 17:25, André Malo wrote:
> On Tuesday 08 May 2012 17:20:08 humbedooh@apache.org wrote:
>> Author: humbedooh
>> Date: Tue May  8 15:20:07 2012
>> New Revision: 1335581
>>
>> URL: http://svn.apache.org/viewvc?rev=1335581&view=rev
>> Log:
>> Add something between <div> and </div> so the same thing doesn't happen
>> again. bleh.
> 
> You dropped the CDATA container... Readding should help. ;-)
> 
> also the backslash in <\/div> is essential. So it won't be mistaken for 
> </script> (by a browser).
> 
> nd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
> For additional commands, e-mail: docs-help@httpd.apache.org
> 
The cdata container was turning the whole thing into &lt;div&gt;, and
now I can't figure out how to re-add it without making the whole thing
explode.

I'm about to shoot myself in the head, can you please please fix this
for me, so I don't cause serious bodily harm?

With regards,
Daniel.

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: svn commit: r1335581 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Posted by André Malo <nd...@perlig.de>.
On Tuesday 08 May 2012 17:20:08 humbedooh@apache.org wrote:
> Author: humbedooh
> Date: Tue May  8 15:20:07 2012
> New Revision: 1335581
>
> URL: http://svn.apache.org/viewvc?rev=1335581&view=rev
> Log:
> Add something between <div> and </div> so the same thing doesn't happen
> again. bleh.

You dropped the CDATA container... Readding should help. ;-)

also the backslash in <\/div> is essential. So it won't be mistaken for 
</script> (by a browser).

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org