Skip to content

Make <br> a universal linebreak across formats #1767

Description

@olivroy

I think one thing to make "just work" is recognizing <br> as a line break in all output contexts; this'll avoid any need to call fmt_markdown(). This could probably be done in the process_text() function.

We incidentally also need a similar bit of 'extra' markup to represent cross-output tab stops but that's for another issue.

Originally posted by @rich-iannone in #1765 (comment)


As of gt 0.11

  • \n works for grid format (
    just shows as
    )

  • works for md/html
  • No linebreak seems to work for docx (
    shows as
    and \n acts like a space)
  • Haven't looked for latex yet

For rtf

the text_grob argument of as_gtable() can be used.

#1776 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions