Feneric / doxypypy

A more Pythonic version of doxypy, a Doxygen filter for Python.
GNU General Public License v2.0
149 stars 49 forks source link

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

Open panicgh opened 2 years ago

panicgh commented 2 years ago

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 a739b1289bbba7bd56caeb7b06d9b7f1883c0a3b