-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I figured out that using format_to_html() is a way, if not even the
preferred one, to transform wiki markup to HTML.

Since I want to convert ticket descriptions into HTML that will added to
a plugins output inside a span tag, I am stuck right now: output is
always wrapped by p tag, but that is not allowed inside span tag, and no
way to switch this undesired wrapping off in format_to_html().

How should I proceed? Strip the outer p tag after conversion with
format_to_html() with Python re? Any hints highly appreciated.

Yours

Steffen Hoffmann
(hasienda)

BTW: Why do we use doctype "XHTML 1.0 Strict" and not "HTML 4.01
Transitional" for Trac pages in 0.12? W3C validator throws 170(!) XHTML
errors for a simple wiki page here but nothing, if forced to check for
HTML 4.01 conformance (not counting the doctype related errors then).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkwxE0AACgkQ31DJeiZFuHch0gCbBoP8zs0YSnXLLLFIpCawpqmz
mK8An3PGgwgac4jfDpT6crTNhX8EHhBk
=ew/O
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to