Skip to content

allow blank footnote row in RTF output #64

@eanokian

Description

@eanokian

hi @kpagacz

I'm in a situation where I need to generate RTFs with a single blank/empty footnote when the TLG does not contain any footer, like this:

Image

I think the way gentlg_single() is implemented right now doesn't allow for this behaviour. The exact line that prevents that is:

dsnin <- huxtable::add_footnote(dsnin, paste0("\\line ", footer),

and
paste0("<div style='border-top:1pt solid;'> ", "<br />", footer),

What I'm proposing is:

  1. remove the "first" argument logic and just insert the footnotes as they come to the function.
  2. users will need to pass footers = c("", ...) to gentlg() if they want the first empty line in the footer.

is this minor adjustment something you could consider? any drawbacks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions