Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping of Confluence special characters #4

Closed
jmcnamara opened this issue Nov 20, 2012 · 3 comments
Closed

Escaping of Confluence special characters #4

jmcnamara opened this issue Nov 20, 2012 · 3 comments

Comments

@jmcnamara
Copy link
Owner

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 rt.cpan.org #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

or

  1. agree that the patch should be included in your module after which it can be
    dropped from the Fedora package
@jmcnamara
Copy link
Owner Author

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

@zoffixznet
Copy link
Contributor

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

@jmcnamara
Copy link
Owner Author

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
1..7
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===
''Foo''

===Test 2 Bold===
'''Foo'''

===Test 3 Monospace===
<tt>Foo</tt>

===Test 4 Filename===
''Foo''

===Test 5 Bold Italic===
'''''Foo'''''

===Test 6 Italic Bold===
'''''Foo'''''

===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.

John

jmcnamara added a commit that referenced this issue Mar 8, 2015
Fixed escaping of special symbols in text and headers for the Confluence
wiki format.

RT#38833 / Issue #4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants