terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.

Home Page:https://d2lang.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

\n in grid destroys the grid lines.

jfudickar opened this issue · comments

When a \n is used in a grid column the horizontal lines are no longer correct:

https://play.d2lang.com/?script=dI7vSsQwEMS_5ymGfhQ8bALi7bMIJW32aiRNj-zmQMR3l4aT-u8ggdmdneH3Kmu2hK7DuwHmEsP97M-Eh69pWlNdshCcAe4Oom-JD-OaAuHkk7AxwNkXzvrD01LZAP3QEzp0BrC7dJvUl1JFh4ufal22Fq9a4liV_y-yhLGWPGhceBCe4CX8-c_5qq4PYXe_H3r8CkpoiJbAeY6ZpWFaQhxPG9zFp3oDzBH6R9vijnBswW335NzROvNhPgMAAP__&layout=elk&

json2: "" {
  grid-gap: 0
  grid-columns: 3
  *.style.bold: false

  parent.style.bold: true
  1_1: " "
  2_1: " "
  3_1: thrust_vacuum

  attribute.style.bold: true
  1_2: burn_time_sec asd asd asd asd asd \nasd asdasdasda dasd asd as asd asd asda sd asd asd asd sd
  2_2: engines
  3_2: ibf

  value.style.bold: true
  1_3: 162
  2_3: 9
  3_3: 1833923
}