Skip to content

inline-code in markdown tables adds an unwanted \tab  #985

@pat-s

Description

@pat-s
#' @title test fun
#'
#' @description test.
#'
#' @section test:
#'
#' | **test** | **test** | **test** |
#' | -------- | -------- |  ------------   |
#' | `test` | test | `test` test 2 |
#' @name test
#' @export
NULL

results in

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test.R
\name{test}
\alias{test}
\title{test fun}
\description{
test.
}
\section{test}{
\tabular{lll}{
   \strong{test} \tab \strong{test} \tab \strong{test} \cr
   \code{test} \tab test \tab \code{test} \tab test 2 \cr
}
}

Note the additional \tab after \code{test}. This breaks the table formatting as this line now has 4 cols instead of 3.

(I tried to come up with a full reprex but didn't manage to combine roxygen2:::roc_proc_text(roxygen2:::rd_roclet() in the right way.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviormarkdown ⬇️wipwork in progress

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions