Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Commit

Permalink
change default method to list and default string to list 5*5
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarcia committed May 21, 2010
1 parent 9fb4c1a commit b3a7412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions zencoding/lorem_ipsum.py
Expand Up @@ -27,7 +27,10 @@
l[ist] [case] [number_of_words_1 [number_of_words_2 [...]]]
where case is { u[pper] | lo[wer] | t[itle] }
and number_of_words is an integer or a multiplication (n*m)
and number_of_words is an integer or a multiplication (for example '3*6')
commands can be shorten by using initials. For example, "wt 9" is equivalent
to "words title 9"
see examples at the end of this script
Expand Down Expand Up @@ -177,7 +180,7 @@ def parse(args):

method, case, params = parse(args)
if method is None:
method = get_characters
method = get_list
return method(case, params)

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion zencoding/zen_editor.py
Expand Up @@ -33,7 +33,7 @@ class ZenEditor():
def __init__(self):
self.last_wrap = ''
self.last_expand = ''
self.last_lorem_ipsum = 's 11 9 15'
self.last_lorem_ipsum = 'list 5*5'
zen_core.set_caret_placeholder('')
self.html_navigation = None

Expand Down

0 comments on commit b3a7412

Please sign in to comment.