title: With python-docx, when I change font properties in a table cell, the whole document acquires that property
body: <p>I have a table with two columns. I want to underline the text in column 0 and leave it normal in column 1.</p>
  
  <p>However, if I change the style in cells of column 0 to <code>.style.font.underline = True</code>, the whole document gets underlined. </p>
  
  <p>Now if in addition I change the style in cells of column 1 to <code>.style.font.underline = False</code>, the underline in column 0 disappears.</p>
  
  <p>Here is an example:</p>
  
  <pre><code>import docx
  from docx import Document
  from docx.text.paragraph import Paragraph
  
  doc = Document()
  doc.add_paragraph('Before table')
  
  table = doc.add_table(rows=0, cols=2)
  row_cells = table.add_row().cells
  row_cells[0].text = "Dog"
  row_cells[0].paragraphs[0].style.font.underline = True
  
  row_cells[1].text = "Grey"
  # row_cells[1].paragraphs[0].style.font.underline = False
  
  row_cells = table.add_row().cells
  row_cells[0].text = "Cat"
  row_cells[0].paragraphs[0].style.font.underline = True
  
  row_cells[1].text = "Black"
  # row_cells[1].paragraphs[0].style.font.underline = False
  
  doc.add_paragraph('After table')
  
  doc.save(r"table_test.docx")
  </code></pre>
  
  <p>Run this example to see how the whole document gets underlined.</p>
  
  <p>Now uncomment the commented lines,  run again, and you will see that the underline disappears everywhere, including column 0.</p>