Menu

Commit [r7609]  Maximize  Restore  History

`format_to...` wiki formatters can use rendering hints to adapt their processing:

- `format_to` will use `'wiki_flavor'` to decide whether to render in `'oneliner'` mode or full page `'html'` mode
- `format_to_oneliner` will use the `'shorten_lines'` hint if the `shorten` keyword argument is not specified
- `format_to_html` will use the `'preserve_newlines'` hint if the `escape_newlines` keyword argument is not specified

Note: the `preserve_newlines` hint was preferred instead of `escape_newlines` because it better conveys the semantic of the operation and that name was already used for the `[ticket] preserve_newlines` setting.

cboos 2008-10-27

changed /branches/0.11-stable/trac/mimeview/api.py
changed /branches/0.11-stable/trac/wiki/formatter.py
/branches/0.11-stable/trac/mimeview/api.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/wiki/formatter.py Diff Switch to side-by-side view
Loading...