Comment #2 on issue 1389 by [email protected]: pretty should have an option to disable line wrapping
http://code.google.com/p/sympy/issues/detail?id=1389

From pretty.py's documentation now:
    """Prints expr in pretty form.

    pprint is just a shortcut for this function.


    Parameters
    ==========

    expr : expression
        the expression to print
    wrap_line : bool, optional
        line wrapping enabled/disabled, defaults to True
    num_columns : bool, optional
        number of columns before line breaking (default to None which reads
        the terminal width), useful when using SymPy without terminal.
    use_unicode : bool or None, optional
        use unicode characters, such as the Greek letter pi instead of
        the string pi.
    full_prec : bool or string, optional
        use full precision. Default to "auto"
    order : bool or string, optional
        set to 'none' for long expressions if slow; default is None

    """

So to fix the code to not have line wrapping:

x = sympy.Symbol('x')
print "<pre>"+ sympy.pretty(sympy.solve(x**5+x-1, x), wrap_line=False)+"</pre>"

I think this issue can be closed, since pretty's options are now documented (albeit the documentation is shown in pretty_print's documentation, but pretty's documentation says "see pretty_print's documentation for options") and there is an option to disable line wrapping.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to