TG 1.0.9 text widget

0 views
Skip to first unread message

ozwyzard

unread,
Aug 25, 2010, 5:46:38 PM8/25/10
to TurboGears
I am using the text widget on TG 1.0.x. However, when viewed, the
text widget display does not preserve newlines, tabs, etc. I would
like for the display to
(a) preserve newlines and tabs
(b) show URLs as hyperlinks

I tried displaying the output as XML format and added display-time
translation of URL text to markup. However, this is prone with error
(in case the original text already has XML characters like '<', '>',
etc.).

TinyMCE sounds too heavy duty for my use.

The recently discussed restructured text sounds interesting to me, but
I could not locate a widget for it.

Pointers welcome!

Thanks,
ozwyzard

Diez B. Roggisch

unread,
Aug 25, 2010, 6:14:50 PM8/25/10
to turbo...@googlegroups.com

There is no automagic that converts e.g. newlines to markup and links to <a href>. You will have to process the text before display. And while there might be no widget for ReST, it's easy enough to create one with docutils.

Diez

Reply all
Reply to author
Forward
0 new messages