Geoffrey Sneddon avatar Geoffrey Sneddon committed 2ccc89f

Change default indent_char to U+0020.

Comments (0)

Files changed (13)

 
 </head><body><header>
 	<h1>Anolis 1.0</h1>
-	<h2 class="no-num no-toc">Documentation — 16 September 2008</h2>
+	<h2 class="no-num no-toc">Documentation — 29 September 2008</h2>
 </header>
 
 <h2 class="no-num no-toc" id=contents>Contents</h2>
 
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#introduction><span class=secno>1 </span>Introduction</a></li>
-	<li><a href=#installing-anolis><span class=secno>2 </span>Installing Anolis</a>
-		<ol>
-			<li><a href=#requirements><span class=secno>2.1 </span>Requirements</a></li>
-			<li><a href=#obtaining-a-copy><span class=secno>2.2 </span>Obtaining a copy</a></li>
-			<li><a href=#installation><span class=secno>2.3 </span>Installation</a></li>
-			<li><a href=#running-the-test-suite><span class=secno>2.4 </span>Running the test suite</a></li></ol></li>
-	<li><a href=#using-anolis><span class=secno>3 </span>Using Anolis</a></li>
-	<li><a href=#processes><span class=secno>4 </span>Processes</a>
-		<ol>
-			<li><a href=#cross-referencing><span class=secno>4.1 </span>Cross-referencing</a></li>
-			<li><a href=#table-of-contents/section-numbering><span class=secno>4.2 </span>Table of contents/section numbering</a></li>
-			<li><a href=#substitution><span class=secno>4.3 </span>Substitution</a></li></ol></li>
-	<li><a class=no-num href=#acknowledgements>Acknowledgements</a></li></ol>
+ <li><a href=#introduction><span class=secno>1 </span>Introduction</a></li>
+ <li><a href=#installing-anolis><span class=secno>2 </span>Installing Anolis</a>
+  <ol>
+   <li><a href=#requirements><span class=secno>2.1 </span>Requirements</a></li>
+   <li><a href=#obtaining-a-copy><span class=secno>2.2 </span>Obtaining a copy</a></li>
+   <li><a href=#installation><span class=secno>2.3 </span>Installation</a></li>
+   <li><a href=#running-the-test-suite><span class=secno>2.4 </span>Running the test suite</a></li></ol></li>
+ <li><a href=#using-anolis><span class=secno>3 </span>Using Anolis</a></li>
+ <li><a href=#processes><span class=secno>4 </span>Processes</a>
+  <ol>
+   <li><a href=#cross-referencing><span class=secno>4.1 </span>Cross-referencing</a></li>
+   <li><a href=#table-of-contents/section-numbering><span class=secno>4.2 </span>Table of contents/section numbering</a></li>
+   <li><a href=#substitution><span class=secno>4.3 </span>Substitution</a></li></ol></li>
+ <li><a class=no-num href=#acknowledgements>Acknowledgements</a></li></ol>
 <!--end-toc-->
 
 <h2 id=introduction><span class=secno>1 </span>Introduction</h2>
 <p>The options <dfn id=newline-char><code>--newline-char</code></dfn> and
 <dfn id=indent-char><code>--indent-char</code></dfn> set the newline and indent strings (they
 do not have to be a single character) respecively. They default to U+000A LINE
-FEED (LF) and U+0009 CHARACTER TABULATION (tab) respectively. These are only
-used when generating large trees of generated markup, such as the table of
-contents.</p>
+FEED (LF) and U+0020 SPACE respectively. These are only used when generating
+large trees of generated markup, such as the table of contents.</p>
 
 <p>Other <a href=#processes title=processes>process</a> specific options are documented
 under the <a href=#processes title=processes>process</a> to which they belong.</p>
 <p>The options <dfn><code>--newline-char</code></dfn> and
 <dfn><code>--indent-char</code></dfn> set the newline and indent strings (they
 do not have to be a single character) respecively. They default to U+000A LINE
-FEED (LF) and U+0009 CHARACTER TABULATION (tab) respectively. These are only
-used when generating large trees of generated markup, such as the table of
-contents.</p>
+FEED (LF) and U+0020 SPACE respectively. These are only used when generating
+large trees of generated markup, such as the table of contents.</p>
 
 <p>Other <span title="processes">process</span> specific options are documented
 under the <span title="processes">process</span> to which they belong.</p>
         xml=False,
         lxml_html=False,
         newline_char=u"\n",
-        indent_char=u"\t",
+        indent_char=u" ",
         force_html4_id=False,
         min_depth=2,
         max_depth=6,

anolislib/processes/toc.py

         for node in to_remove:
             node.getparent().remove(node)
 
-    def indentNode(self, node, indent=0, newline_char=u"\n", indent_char=u"\t",
+    def indentNode(self, node, indent=0, newline_char=u"\n", indent_char=u" ",
                    **kwargs):
         whitespace = newline_char + indent_char * indent
         if node.getprevious() is not None:

tests/basic/toc-basic.html

 
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
+ <li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
 <!--end-toc-->
 <h2 id=bar><span class=secno>1 </span>Bar</h2>

tests/basic/toc-begin-end-content-garbage.html

 <!DOCTYPE html><head><meta charset=utf-8><h1>Foo</h1>
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span>Bar</a></ol><!--end-toc-->
+ <li><a href=#bar><span class=secno>1 </span>Bar</a></ol><!--end-toc-->
 <h2 id=bar><span class=secno>1 </span>Bar</h2>

tests/basic/toc-begin-end-content.html

 <!DOCTYPE html><head><meta charset=utf-8><h1>Foo</h1>
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span>Bar</a></ol><!--end-toc-->
+ <li><a href=#bar><span class=secno>1 </span>Bar</a></ol><!--end-toc-->
 <h2 id=bar><span class=secno>1 </span>Bar</h2>

tests/basic/toc-begin-end.html

 <!DOCTYPE html><head><meta charset=utf-8><h1>Foo</h1>
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span>Bar</a></ol><!--end-toc-->
+ <li><a href=#bar><span class=secno>1 </span>Bar</a></ol><!--end-toc-->
 <h2 id=bar><span class=secno>1 </span>Bar</h2>

tests/basic/toc-code.html

 
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span><code>Bar</code></a></ol>
+ <li><a href=#bar><span class=secno>1 </span><code>Bar</code></a></ol>
 <!--end-toc-->
 <h2 id=bar><span class=secno>1 </span><code>Bar</code></h2>

tests/basic/toc-dfn-code.html

 
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span><code>Bar</code></a></ol>
+ <li><a href=#bar><span class=secno>1 </span><code>Bar</code></a></ol>
 <!--end-toc-->
 <h2 id=bar><span class=secno>1 </span><dfn><code>Bar</code></dfn></h2>

tests/basic/toc-dfn.html

 
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
+ <li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
 <!--end-toc-->
 <h2 id=bar><span class=secno>1 </span><dfn>Bar</dfn></h2>

tests/basic/toc-header-element.html

 
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
+ <li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
 <!--end-toc-->
 <section>
 	<header class="no-toc no-num" id=bar>

tests/basic/toc-remove-a.html

 
 <!--begin-toc-->
 <ol class=toc>
-	<li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
+ <li><a href=#bar><span class=secno>1 </span>Bar</a></ol>
 <!--end-toc-->
 <h2 id=bar><span class=secno>1 </span>B<a>a</a>r</h2>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.