Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Pod-Simple-Wiki CPAN distribution.

Report information
The Basics
Id: 38833
Status: resolved
Priority: 0/
Queue: Pod-Simple-Wiki

People
Owner: jmcnamara [...] cpan.org
Requestors: lubo.rintel [...] gooddata.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09
Fixed in: (no value)



Subject: Escaping of Confluence special characters
Confluence output is much garbled without it (try any random POD documentation). Probably even more characters need to be escaped.
Subject: perl-Pod-Simple-Wiki-0.09-escape.patch
Escape some characters, also in titles. Lubomir Rintel <lkundrak@v3.sk> --- Pod-Simple-Wiki-0.09/lib/Pod/Simple/Wiki/Confluence.pm.escape 2008-05-24 07:56:48.000000000 +0200 +++ Pod-Simple-Wiki-0.09/lib/Pod/Simple/Wiki/Confluence.pm 2008-08-29 10:09:44.000000000 +0200 @@ -96,16 +96,11 @@ my $self = shift; my $text = $_[0]; - # Only escape words in paragraphs - if (not $self->{_in_Para}) { - $self->{_wiki_text} .= $text; - return; - } - # Split the text into tokens but maintain the whitespace my @tokens = split /(\s+)/, $text; # Escape any tokens here, if necessary. + @tokens = map { s/([\[\{-])/\\$1/g; $_ } @tokens; # Rejoin the tokens and whitespace. $self->{_wiki_text} .= join '', @tokens;
On Fri Aug 29 04:19:51 2008, lkundrak wrote: Show quoted text
> Confluence output is much garbled without it (try any random POD > documentation). Probably even more characters need to be escaped.
Hi, Thanks. I'll try work some tests for that into the next release. John. --
Pull request that solves this bug and includes a test has been sent: https://github.com/jmcnamara/pod-simple-wiki/pull/17 -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]
Fixed in version 0.18 now on CPAN.