Trees Indices Help
Trac
trac :: wiki :: formatter :: Formatter :: Class Formatter

Class Formatter

source code

object --+
 |
 Formatter
Known Subclasses:
  • OutlineFormatter
  • , OneLinerFormatter

Base Wiki formatter.

Parses and formats wiki text, in a given Context.

Instance Methods
__init__(self, env, context)
Note: req is still temporarily used. source code
split_link(self, target) source code
tag_open_p(self, tag)
Do we currently have any open tag with tag as end-tag? source code
flush_tags(self) source code
open_tag(self, tag_open, tag_close=None)
Open an inline style tag. source code
close_tag(self, open_tag, close_tag=None)
Open a inline style tag. source code
simple_tag_handler(self, match, open_tag, close_tag)
Generic handler for simple binary style tags source code
get_intertrac_url(self, ns, target) source code
shorthand_intertrac_helper(self, ns, target, label, fullmatch) source code
close_list(self, depth=-1) source code
close_def_list(self) source code
close_indentation(self) source code
open_table(self) source code
open_table_row(self, params='') source code
close_table_row(self, force=False) source code
close_table(self) source code
open_paragraph(self) source code
close_paragraph(self) source code
parse_processor_args(self, line) source code
handle_code_block(self, line, startmatch=None) source code
close_code_blocks(self) source code
handle_quote_block(self, line) source code
close_quote_block(self, escape_newlines) source code
handle_match(self, fullmatch) source code
replace(self, fullmatch)
Replace one match with its corresponding expansion source code
reset(self, source, out=None) source code
format(self, text, out=None, escape_newlines=False) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
flavor = 'default'
INTERTRAC_SCHEME = '[a-zA-Z.+-]*?'
QUOTED_STRING = '\'[^\']+\'|\\"[^\\"]+\\"'
LINK_SCHEME = '[a-zA-Z][-a-zA-Z0-9+._]*'
Properties

Inherited from object: __class__

Method Details

__init__(self, env, context)
(Constructor)

source code
Note: req is still temporarily used.
Overrides: object.__init__

open_tag(self, tag_open, tag_close=None)

source code

Open an inline style tag.

If tag_close is not specified, tag_open is an indirect tag (0.12)

close_tag(self, open_tag, close_tag=None)

source code

Open a inline style tag.

If close_tag is not specified, it's an indirect tag (0.12)


Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /