diff options
| author | georg.brandl <devnull@localhost> | 2008-03-19 08:00:25 +0000 |
|---|---|---|
| committer | georg.brandl <devnull@localhost> | 2008-03-19 08:00:25 +0000 |
| commit | fe01c3b72637b72d4f1547fa3ac32e5507bda985 (patch) | |
| tree | cbacb0e2d53a237d9b54c796161f9920f13f89de /sphinx/texinputs/sphinx.sty | |
| parent | 1431c723416065a211665c4fe669f1a72683a45c (diff) | |
| download | sphinx-fe01c3b72637b72d4f1547fa3ac32e5507bda985.tar.gz | |
* Support \classdescni.
* Generate valid highlighting code even if code doesn't end in \n.
Diffstat (limited to 'sphinx/texinputs/sphinx.sty')
| -rw-r--r-- | sphinx/texinputs/sphinx.sty | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 2dbd2b09..f3db4664 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -685,6 +685,15 @@ \classline{#1}{#2} }{\end{fulllineitems}} +\newcommand{\classlineni}[2]{ + \py@sigline{\strong{class }\bfcode{#1}}{#2}} +\newenvironment{classdescni}[2]{ + % Using \renewcommand doesn't work for this, for unknown reasons: + \global\def\py@thisclass{#1} + \begin{fulllineitems} + \classlineni{#1}{#2} +}{\end{fulllineitems}} + % \begin{classdesc*}{name} \newenvironment{classdesc*}[1]{ % Using \renewcommand doesn't work for this, for unknown reasons: |
