forked from ojii/clint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindents.py
More file actions
executable file
·35 lines (26 loc) · 1.12 KB
/
Copy pathindents.py
File metadata and controls
executable file
·35 lines (26 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import with_statement
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
from clint.textui import puts, indent
lorem = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
if __name__ == '__main__':
puts('This is an example of text that is not indented. Awesome, eh?')
puts('Lets quote some text.')
with indent(4, quote='.'):
puts('This is indented text.')
with indent(3, quote=' >'):
puts('This is quoted text.')
puts(lorem)
puts("And, we're back to the previous index level. That was easy.")
with indent(12, quote=' |'):
puts('This is massively indented text.')
puts('This is massively indented text again.')
puts("Now I'll show you how to negatively indent.")
with indent(-5, quote='!! '):
puts('NOTE: INCEPTION!')
puts('And back to where we were.')
puts('Back to level 1.')
puts('Back to normal.')