8 Oct 05:16
[ docutils-Bugs-2152541 ] double-quotes inside code block get translated by htmlwriter
From: SourceForge.net <noreply <at> sourceforge.net>
Subject: [ docutils-Bugs-2152541 ] double-quotes inside code block get translated by htmlwriter
Newsgroups: gmane.text.docutils.devel
Date: 2008-10-08 03:20:22 GMT
Subject: [ docutils-Bugs-2152541 ] double-quotes inside code block get translated by htmlwriter
Newsgroups: gmane.text.docutils.devel
Date: 2008-10-08 03:20:22 GMT
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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
RSS Feed