Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse_description() loses line numbers #917

Closed
hadley opened this issue Sep 19, 2019 · 1 comment
Closed

parse_description() loses line numbers #917

hadley opened this issue Sep 19, 2019 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@hadley
Copy link
Member

hadley commented Sep 19, 2019

text <- "
#' Foo
#'
#' Description
#' 
#' Details
#'
#' @param x xyz
#' @export
NULL"
roxygen2::parse_text(text)
#> [[1]]
#> <roxy_block> [<text>:10]
#>   $tag
#>     [line:  1] @title
#>     [line:  1] @description
#>     [line:  1] @details
#>     [line:  9] @param
#>     [line: 10] @export
#>     [line:???] @backref
#>   $call   NULL
#>   $object NULL
#> 

Created on 2019-09-19 by the reprex package (v0.3.0)

@hadley hadley added the bug an unexpected problem or unintended behavior label Sep 20, 2019
@gaborcsardi
Copy link
Member

This is also a a problem for #922, because we don't know if those comments were inline, i.e. for a method, or not. So I'll fix this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants