Skip to content

r""" (and other string prefixes) removed from the end of docstrings #84

@panicgh

Description

@panicgh

Description

doxypypy produces a wrong result if a doctstring ends with a typical string prefix for example r""":

Input:

def fun():
    """Simulator"""
    pass

Output, note doxypypy ate the r:

## @brief Simulato
def fun():
    pass

Testing other string prefixes. Affected: r u R U fr Fr fR FR

$ for i in r u R U f F fr Fr fR FR rf rF Rf RF; do py_filter <(cat <<<"\"\"\"$i = $i\"\"\""); done
## @brief r =
## @brief u =
## @brief R =
## @brief U =
## @brief f = f
## @brief F = F
## @brief fr = f
## @brief Fr = F
## @brief fR = f
## @brief FR = F
## @brief rf = rf
## @brief rF = rF
## @brief Rf = Rf
## @brief RF = RF

Workaround

Terminate all docstrings with .

Version

commit a739b12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions