summaryrefslogtreecommitdiffstats
path: root/doc/user/scanners.xml
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-10-06 15:04:19 (GMT)
committerDirk Baechle <dl9obn@darc.de>2013-10-06 15:04:19 (GMT)
commite2d8d87c5911067374d0b3b5be562c4ce2dddcce (patch)
tree2ee5b8a387b880e61a23a7abda1a152fead7af00 /doc/user/scanners.xml
parent43f296c7c2a350de0c59a442e566c165420803e3 (diff)
downloadSCons-e2d8d87c5911067374d0b3b5be562c4ce2dddcce.zip
SCons-e2d8d87c5911067374d0b3b5be562c4ce2dddcce.tar.gz
SCons-e2d8d87c5911067374d0b3b5be562c4ce2dddcce.tar.bz2
- left-aligned all code examples in documentation
- accordingly updated the generated files, containing example output
Diffstat (limited to 'doc/user/scanners.xml')
-rw-r--r--doc/user/scanners.xml28
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/user/scanners.xml b/doc/user/scanners.xml
index 46b2a9f..5ed0d62 100644
--- a/doc/user/scanners.xml
+++ b/doc/user/scanners.xml
@@ -172,7 +172,7 @@ over the file scanning rather than being called for each input line:
</para>
<programlisting>
- include filename.foo
+include filename.foo
</programlisting>
<para>
@@ -186,13 +186,13 @@ over the file scanning rather than being called for each input line:
</para>
<programlisting>
- import re
-
- include_re = re.compile(r'^include\s+(\S+)$', re.M)
-
- def kfile_scan(node, env, path, arg):
- contents = node.get_text_contents()
- return env.File(include_re.findall(contents))
+import re
+
+include_re = re.compile(r'^include\s+(\S+)$', re.M)
+
+def kfile_scan(node, env, path, arg):
+ contents = node.get_text_contents()
+ return env.File(include_re.findall(contents))
</programlisting>
<para>
@@ -295,9 +295,9 @@ over the file scanning rather than being called for each input line:
</para>
<programlisting>
- kscan = Scanner(function = kfile_scan,
- skeys = ['.k'])
- env.Append(SCANNERS = kscan)
+kscan = Scanner(function = kfile_scan,
+ skeys = ['.k'])
+env.Append(SCANNERS = kscan)
</programlisting>
<para>
@@ -393,9 +393,9 @@ over the file scanning rather than being called for each input line:
<scons_example name="scanners_findpathdirs">
<file name="SConstruct" printme="1">
- kscan = Scanner(function = kfile_scan,
- skeys = ['.k'],
- path=FindPathDirs('KPATH'))
+kscan = Scanner(function = kfile_scan,
+ skeys = ['.k'],
+ path=FindPathDirs('KPATH'))
</file>
</scons_example>