From: SourceForge.net <no...@so...> - 2008-10-08 03:20:31
|
Bugs item #2152541, was opened at 2008-10-07 22:20 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422030&aid=2152541&group_id=38414 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jeet Sukumaran (jeetsukumaran) Assigned to: Nobody/Anonymous (nobody) Summary: double-quotes inside code block get translated by htmlwriter Initial Comment: The following rst source: This is a sample of Python code:: print "Hello, world" Results in the following HTML: u'<p>This is a sample of Python code:</p>\n<pre class="literal-block">\nprint "Hello, world"\n</pre>\n' Using 'core.publish_parts(s, writer_name="html")["fragment"]'. Because the code is in a "<pre>" block, then the '"' does not get rendered into quote characters by browsers, resulting in very messed up quote. Basically, quotes and other special characters should not get translated into their HTML counterparts if the text is in a code block. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422030&aid=2152541&group_id=38414 |