Skip to content

Commit 1091b2d

Browse files
committed
fixed html indentation in examples
1 parent 463c473 commit 1091b2d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

entries/jQuery.mobile.activePage.xml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
padding: 10px;
1515
}
1616
]]></css>
17-
<html><![CDATA[
18-
<div data-role="header">
17+
<html> <![CDATA[<div data-role="header">
1918
<h1>Page 1</h1>
2019
</div>
2120
<div data-role="content">
@@ -24,6 +23,7 @@
2423
<div class="myResult">The result will be displayed here</div>
2524
</div>
2625
</div>
26+
2727
<div data-role="page" id="page2">
2828
<div data-role="header">
2929
<h1>Page 2</h1>
@@ -32,16 +32,15 @@
3232
<a href="#page1" data-role="button" data-inline="true">Go to Page 1</a>
3333
<input type="button" value="Which Page is this?" class="myButton" data-inline="true"/> <br>
3434
<div class="myResult">The result will be displayed here</div>
35-
</div>
36-
]]></html>
37-
<code><![CDATA[
38-
$(function() {
39-
$( ".myButton" ).on( "click", function() {
40-
var whichPageId = $.mobile.activePage.attr( "id" );
41-
$( ".myResult" ).html( "This is " + whichPageId );
35+
</div>]]></html>
36+
<code>
37+
<![CDATA[$(function() {
38+
$( ".myButton" ).on( "click", function() {
39+
var whichPageId = $.mobile.activePage.attr( "id" );
40+
$( ".myResult" ).html( "This is " + whichPageId );
41+
});
4242
});
43-
});
44-
]]></code>
43+
]]></code>
4544
</example>
4645
<category slug="properties"/>
4746
</entry>

entries2html.xsl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
&lt;/head&gt;
1717
&lt;body&gt;
1818

19-
&lt;div data-role="page" id="page1"&gt;
19+
&lt;div data-role="page" id="page1"&gt;
2020
<xsl:value-of select="html/text()"/>
21-
&lt;/div&gt;<xsl:if test="code">
22-
&lt;script&gt;<xsl:value-of select="code/text()"/>&lt;/script&gt;</xsl:if>
21+
&lt;/div&gt;
22+
<xsl:if test="code">
23+
&lt;script&gt;<xsl:value-of select="code/text()"/>&lt;/script&gt;</xsl:if>
2324

2425
&lt;/body&gt;
2526
&lt;/html&gt;

0 commit comments

Comments
 (0)