mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-07 13:36:43 +01:00
change default wrapping column to 65 from 60 (was 40 in the last release), as discussed in issue 172
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
d0d0902e99
commit
beb6fab662
2 changed files with 3 additions and 3 deletions
|
@ -372,7 +372,7 @@ balloon style is specified a fallback style will be used.
|
||||||
@opindex @option{-W}
|
@opindex @option{-W}
|
||||||
@opindex @option{--wrap}
|
@opindex @option{--wrap}
|
||||||
Specify the screen column where the message should be wrapped, this is by
|
Specify the screen column where the message should be wrapped, this is by
|
||||||
default 60, as with @command{cowsay}. The balloon's extra width is taken into
|
default 65, as with @command{cowsay}. The balloon's extra width is taken into
|
||||||
consideration.
|
consideration.
|
||||||
|
|
||||||
If the argument is not a number, but starts instead with @code{n} (for ‘none’ or
|
If the argument is not a number, but starts instead with @code{n} (for ‘none’ or
|
||||||
|
@ -3361,7 +3361,7 @@ Pony symlink added:
|
||||||
@end itemize
|
@end itemize
|
||||||
@item
|
@item
|
||||||
Default value for @option{-W}, the message wrapping column, has been changed
|
Default value for @option{-W}, the message wrapping column, has been changed
|
||||||
from 40 to 60, to wrap messages better.
|
from 40 to 65, to wrap messages better.
|
||||||
@item
|
@item
|
||||||
@file{nightmare} has renamed into @file{nightmaremoon} for concistency
|
@file{nightmare} has renamed into @file{nightmaremoon} for concistency
|
||||||
with the comic
|
with the comic
|
||||||
|
|
|
@ -1051,7 +1051,7 @@ class Ponysay():
|
||||||
@param args:ArgParser Command line options
|
@param args:ArgParser Command line options
|
||||||
@return :int? The message balloon wrapping column, or `None` if disabled
|
@return :int? The message balloon wrapping column, or `None` if disabled
|
||||||
'''
|
'''
|
||||||
messagewrap = 60
|
messagewrap = 65
|
||||||
if (args.opts['-W'] is not None) and (len(args.opts['-W'][0]) > 0):
|
if (args.opts['-W'] is not None) and (len(args.opts['-W'][0]) > 0):
|
||||||
messagewrap = args.opts['-W'][0]
|
messagewrap = args.opts['-W'][0]
|
||||||
if messagewrap[0] in 'nmsNMS': # m is left to n on QWERTY and s is left to n on Dvorak
|
if messagewrap[0] in 'nmsNMS': # m is left to n on QWERTY and s is left to n on Dvorak
|
||||||
|
|
Loading…
Reference in a new issue