Multi-line table cell in reStructuredText?

后端 未结 2 1187
眼角桃花
眼角桃花 2021-02-12 10:48

Is there a way to input a newline into a table cell? For example, say I have a table like this:

+----------+----------+----------+
| Header 1 | Header 2 | Header         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-12 11:35

    You can also leave a gap between the lines like this

    +----------+----------+----------+
    | Header 1 | Header 2 | Header 3 |
    +==========+==========+==========+
    | Item 1   |          |          |
    |          |          |          |
    | Item 2   |          |          |
    +----------+----------+----------+
    

    This method tends to be friendlier with editors so they dont think you have accidentally added an extra pipe

提交回复
热议问题