#6122: [with patch, needs review] strip 'nodetex' from docstrings
-------------------------+--------------------------------------------------
Reporter: jhpalmieri | Owner: jhpalmieri
Type: enhancement | Status: new
Priority: minor | Milestone: sage-4.0.1
Component: misc | Keywords:
-------------------------+--------------------------------------------------
It bothers me that when you ask for a docstring with a 'nodetex'
directive, that directive is printed as part of the docstring. This patch
strips it out.
Before (note the line after "Docstring:"):
{{{
sage: view?
Base Class: <type 'function'>
String Form: <function view at 0x102a230>
Namespace: Interactive
File: /Applications/sage/local/lib/python2.5/site-
packages/sage/misc/latex.py
Definition: view(objects, title='SAGE', debug=False, sep='',
tiny=False, **kwds)
Docstring:
nodetex
Compute a latex representation of each object in objects, compile,
and display typeset. If used from the command line, this requires
that latex be installed.
}}}
After:
{{{
sage: view?
Base Class: <type 'function'>
String Form: <function view at 0x102b770>
Namespace: Interactive
File: /Applications/sage/local/lib/python2.5/site-
packages/sage/misc/latex.py
Definition: view(objects, title='SAGE', debug=False, sep='',
tiny=False, pdflatex=None, **kwds)
Docstring:
Compute a latex representation of each object in objects, compile,
and display typeset. If used from the command line, this requires
that latex be installed.
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6122>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---