Wednesday, May 13, 2009 12:12 PM | rahel luethy | 3 comment(s)

how to convert an excel table to wiki markup

mostly a note to myself, but this maybe comes in useful to others:

  1. export excel table as tab-separated values
  2. open in any text editor with regular expression support
  3. replace \t with | (inserts column boundaries)
  4. replace ^(.*)$ with |\1| (pre-/appends boundaries for first/last column)
  5. replace || with | | (inserts a space for empty columns; run again if the previous run produced new pairs)

2:13 PM | Blogger Ced said...

Or just paste it in RTF-mode and it will be converted automagically.

2:20 PM | Blogger rahel luethy said...

thanks for the pointer -- only works with wikis that actually offer an RTF-mode though (which e.g. jira does not...)

3:50 PM | Blogger Ced said...

That's true. :-( It has been a long-standing feature request to include a Confluence-like editor in Jira, though (see http://jira.atlassian.com/browse/JRA-8943).