Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I preserve table column widths in copy paste?

I have a Python program that reads in an Excel sheet and turns it into Word based documentation.  I copy this and paste it into a Confluence page and all the nice table formatting is lost. Specifically, all of the columns are the same width in Confluence; the width of the source is lost. This worked perfectly in Mindtouch, our previous Wiki. There are over 100 tables in the output and I had to spend nearly half an hour manually re-adjusting the tables so they looked the same.

I also tried to save the word file as HTML. The HTML looked great.  The copy-pasted Confluence page not so much. Can anyone shed some light on how this might be done.  As far as I can tell I cannot paste raw HTML into the page.  Again Mindtouch, which is 10 years older than Confluence allowed me to edit the HTML with a single push button then copy-paste raw HTML in there.

1 answer

0 votes
Prince Nyeche Community Leader Feb 15, 2021

Hi @Stephen Ellwood 

Welcome to community! On Cloud I don't think it allows raw HTML to be added directly. If it was on markdown most probably it can render it but HTML, it will most definitely strip it out. 

Thanks for the answer.  To be clear, I don't want to have to use html, I would rather that the word importer preserves all of the formatting in the source.  Since I can do it manually it is clearly possible to create a Confluence page that looks the way I want, its just that I have not found a way yet of doing it automatically.

Prince Nyeche Community Leader Feb 15, 2021

Hi, you can look into using API to do what you want?

Where would I find the documentation on the API?

Prince Nyeche Community Leader Feb 16, 2021

Hi, I already gave a link to the docs in my previous response.

Like Stephen Ellwood likes this

Apologies, did not see the blue in the black :o)

I have taken a look at the API but its not immediately obvious how to write a table into a page and how to encode the page widths.  This is a week's work at least to get up to speed with so does not solve my problem in the short term.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

101 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you