Escaping of Confluence special characters #4

jmcnamara opened this Issue Nov 20, 2012 · 3 comments


None yet

2 participants


From Emmanuel Seyman

I became the owner of Pod-Simple-Wiki's package in Fedora a while back and
discovered we apply a patch that improves the output of the Confluence
filter (the patch was submitted to you in #38833).

I've updated the patch to apply to 0.15 (attached to this mail) but I'm not
sure it is still useful (I don't have a wiki that understands Confluence markup
to test against).

Is there anyway we can :

  1. agree that the patch is useless and can be dropped from the Fedora package


  1. agree that the patch should be included in your module after which it can be
    dropped from the Fedora package

@pragmatic Any interest in patching this and writing a test?

@zoffixznet zoffixznet added a commit to zoffixznet/pod-simple-wiki that referenced this issue Mar 8, 2015
@zoffixznet zoffixznet Fixes RT#38833 / Issue #4: escaping special symbols in text and headers a14594f

To respond to Emmanuel Seyman options: we agree on option 2, as without the patch incorrect input is produced, as checked on Confluence free trial cloud option


without the patch incorrect input is produced, as checked on Confluence free trial cloud option

That's good.

In addition to the automated tests I used to test the modules against their corresponding wikis. There is generally a wiki sandbox available somewhere on the web for testing. I also had around 5 wikis running locally at one stage.

I don't know if you have already seen it but to help with testing wiki output the automated tests have a commented out function like this:

# Output the tests for visual testing in the wiki.
# END{output_tests()};

When you run a test with this commented in you get something like this:

$ perl -Mlib=lib  t/mediawiki_format.t
ok 1 -  Testing: Italic
ok 2 -  Testing: Bold
ok 3 -  Testing: Monospace
ok 4 -  Testing: Filename
ok 5 -  Testing: Bold Italic
ok 6 -  Testing: Italic Bold
ok 7 -  Testing: Single quotes

===Test 1 Italic===

===Test 2 Bold===

===Test 3 Monospace===

===Test 4 Filename===

===Test 5 Bold Italic===

===Test 6 Italic Bold===

===Test 7 Single quotes===
This is neither '&#39;italic'&#39; nor '&#39;'bold'&#39;'

The output could then be pasted into a wiki to check how it rendered.

The commented out code could be implemented in a cleaner way but it wasn't something that was required very often.

Just for your information.


@jmcnamara jmcnamara closed this Mar 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment