On May 30, Michael Orlitzky wrote:
Thanks, my question is mainly about output strings, how do you break them with ellipsis?On 5/30/20 8:51 AM, 'Reimundo Heluani' via sage-devel wrote:I've looked through the code and found numerous instances of long times in examples and tests blocks. So my question is: is there a policy about these things? My guess is to leave the long lines of output without wrapping.You can usually add parentheses and continue your doctest with a "....:" on the next line so that the test retains its meaning and the HTML output remains correct. For example, here's a line that's too long:sage: from mjo.eja.eja_algebra import QuaternionMatrixEuclideanJordanAlgebraInstead of forcing a line break with (say) a backslash, you can do sage: from mjo.eja.eja_algebra import ( ....: QuaternionMatrixEuclideanJordanAlgebra ) The same trick allows you to break sums, products, list comprehensions, etc. over multiple lines.
R.
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/9cbbc443-97e8-deec-d29d-cab5976f3cfd%40orlitzky.com.
-- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/20200530132525.GA46516%40vertex.
signature.asc
Description: PGP signature