summaryrefslogtreecommitdiff
path: root/test/farm/html
diff options
context:
space:
mode:
Diffstat (limited to 'test/farm/html')
-rw-r--r--test/farm/html/run_tabbed.py10
-rw-r--r--test/farm/html/src/tabbed.py4
2 files changed, 8 insertions, 6 deletions
diff --git a/test/farm/html/run_tabbed.py b/test/farm/html/run_tabbed.py
index 88ffcaef..e7e60cec 100644
--- a/test/farm/html/run_tabbed.py
+++ b/test/farm/html/run_tabbed.py
@@ -10,12 +10,14 @@ def html_it():
runfunc(html_it, rundir="src")
# Editors like to change things, make sure our source file still has tabs.
-contains("src/tabbed.py", "\tif x:\t\t\t\t\t\t# look nice")
+contains("src/tabbed.py", "\tif x:\t\t\t\t\t# look nice")
contains("html/tabbed.html",
- ">&nbsp; &nbsp; <span class='key'>if</span> <span class='nam'>x</span>"
- "<span class='op'>:</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"
- " &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span class='com'># look nice</span>"
+ ">&nbsp; &nbsp; &nbsp; &nbsp; <span class='key'>if</span> "
+ "<span class='nam'>x</span><span class='op'>:</span>"
+ "&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "
+ "&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; "
+ "<span class='com'># look nice</span>"
)
doesnt_contain("html/tabbed.html", "\t")
diff --git a/test/farm/html/src/tabbed.py b/test/farm/html/src/tabbed.py
index fe426115..bc6bb456 100644
--- a/test/farm/html/src/tabbed.py
+++ b/test/farm/html/src/tabbed.py
@@ -2,7 +2,7 @@
x = 1
if x:
a = "Tabbed" # Aligned comments
- if x: # look nice
+ if x: # look nice
b = "No spaces" # when they
- c = "Done" # line up.
+ c = "Done" # line up.