UWC conversion lines for tables?

Has anybody created conversion lines in UWC to convert HTML tables (<table, <tr, and <td tags) into the {table, {tr, and {td macros offered in Adaptivist's Content Formatting plugin?

I thought I'd check here before struggling thru the regex myself.

Also, is there any place to share converter lines/files? I'm dealing with a TWiki whose markup has been liberally sprinkled with HTML tags. I'd be glad to share my custom converter with others if there's some forum for it...

1 answer

1 accepted

Check out the Mediawiki's Table handling. There's converters for outputting table syntax (from either mediawiki or html tables) into either Confluence table or Content Formatting syntaxes. The html transformations depend on the Xml Framework, which does need the html to be well-formed. If yours isn't, and you've already scrubbed out any non-html xml, you can use htmltidy option to clean up the html in question.

As for a place to share custom converters, if they're java-regex properties (and not classes) you could add them as a comment to the UWC TWiki Notes page. Otherwise, the best thing to do would perhaps be to submit a patch? You can email me offlist to discuss that if you're interested. (laura.kolker@gmail.com)


FWIW, I had been thinking that whatever code might be used for converting <table parameters to {table should also be adaptable to migrate <span style="..."> to {span:style=...} and <div to {div

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

276 views 38 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot