Ticket #559 (new bug)

Opened 13 years ago

Last modified 11 years ago

[doc] POD escape E<> is not handled by HTML generation

Reported by: fperrad Owned by:
Priority: normal Milestone:
Component: docs Version:
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

for example in book/ch09_pasm.pod,

POD E<#x3C0> is not transformed to HTML entity &#x3C0;

<pre>  set I0, 42        # set integer register #0 to the integer value 42
  set N3, 3.14159   # set number register #3 to an approximation of E<#x3C0>

Change History

Changed 13 years ago by allison

Which HTML generator are you using?

In the default settings for Pod::Simple (or any Pod parser), tags like E<> aren't processed in code examples. The behavior can be enabled in Pod::Simple (or subclasses of Pod::Simple) by calling:

$parser->codes_in_verbatim(1);

where $parser is the instance of Pod::Simple (or subclass).

Changed 13 years ago by allison

Removed the escape code for 'pi' in 38220.

Changed 12 years ago by coke

  • owner set to coke

Changed 11 years ago by coke

  • owner coke deleted

Changed 11 years ago by coke

Tried this:

diff --git a/lib/Parrot/Docs/PodToHtml.pm b/lib/Parrot/Docs/PodToHtml.pm
index 63e1177..6e46adc 100644
--- a/lib/Parrot/Docs/PodToHtml.pm
+++ b/lib/Parrot/Docs/PodToHtml.pm
@@ -49,6 +49,8 @@ sub new {
         PASM_INVALID PASM_TODO
         PIR_FRAGMENT_INVALID
     ));
+    $new->codes_in_verbatim(1);
+
     delete(@{$new->{'Tagmap'}}{'Data','/Data'});
 
     return $new;

Doesn't seem to have any effect.

Changed 11 years ago by coke

See also #674.

Changed 11 years ago by coke

See also #1743 & #558.

Note: See TracTickets for help on using tickets.