diff options
author | gbrandl <devnull@localhost> | 2007-10-14 22:19:28 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-10-14 22:19:28 +0200 |
commit | 6a01a6960a0640e875041c7cc3208c147bd8d9cc (patch) | |
tree | ffe0b1959af1541bdb9bd0d2112de3170b695b64 /pygments/formatters/svg.py | |
parent | 74915e21e689ef1b8a9ddc88be375ca389c93993 (diff) | |
download | pygments-6a01a6960a0640e875041c7cc3208c147bd8d9cc.tar.gz |
Fix a doc error.
Diffstat (limited to 'pygments/formatters/svg.py')
-rw-r--r-- | pygments/formatters/svg.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pygments/formatters/svg.py b/pygments/formatters/svg.py index cf801610..c3fb81d5 100644 --- a/pygments/formatters/svg.py +++ b/pygments/formatters/svg.py @@ -5,7 +5,7 @@ Formatter for SVG output. - :copyright: 2007 by an unknown contributor. + :copyright: 2007 by Georg Brandl. :license: BSD, see LICENSE for more details. """ import StringIO @@ -33,6 +33,9 @@ class SvgFormatter(Formatter): Each line of code is a ``<text>`` element with explicit ``x`` and ``y`` coordinates containing ``<tspan>`` elements with the individual token styles. + By default, this formatter outputs a full SVG document including doctype + declaration and the ``<svg>`` root element. + *New in Pygments 0.9.* Additional options accepted: @@ -43,12 +46,12 @@ class SvgFormatter(Formatter): and `fontsize` options are ignored. Defaults to ``False``. `fontfamily` - The value to give the ``<text>`` elements' ``font-family`` attribute, - defaults to ``"monospace"``. + The value to give the wrapping ``<g>`` element's ``font-family`` + attribute, defaults to ``"monospace"``. `fontsize` - The value to give the ``<text>`` elements' ``font-size`` attribute, - defaults to ``"14px"``. + The value to give the wrapping ``<g>`` element's ``font-size`` + attribute, defaults to ``"14px"``. `xoffset` Starting offset in X direction, defaults to ``0``. |