-
I'm not sure how to deal with the various names this could be under (`outdent` is more recently updated but `dedent` has more weekly npm downloads, etc. while a better name might be `txt` similar to `…
-
_Hijacked by @JoshuaKGoldberg on September 4th, 2023: see https://github.com/dmnd/dedent/issues/12#issuecomment-1705819025. Now accepting PRs for a `dedent({ recursive: true })` option._
---
```…
-
input:
```py
from textwrap import dedent
def f():
arg = "text"
return dedent(
"""\
some {}
lorem ipsum
""".format(arg)
)
```
expected:
…
-
- https://docs.rsshub.app/routes/government#共产党员网
- https://docs.rsshub.app/routes/multimedia#_141jav
- https://docs.rsshub.app/routes/multimedia#_141ppv
- https://docs.rsshub.app/routes/new-media#…
-
Looks like the module removes all newlines from start and end, but I think it makes more sense to only remove one newline at start and end so that I can add newlines without adding `\n`.
```js
// …
-
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
If attempting to add a route for a handler whose code includes a multi-line string, the `dede…
-
During list item indenting, draft ensures correct nesting by checking that an indented item will have a parent one level lower. But when an item is dedented, its descendants stay at the same level, gi…
-
### Description
When rendering a nested block as a fragment, an if-else-endif clause in the outer block causes this error message:
```
error: dedent() called while indentation == 0
--> testing/t…
-
```
$ node
> dedent = require(".").default
[Function: dedent]
> `a\xa0\tb`
'a \tb'
> dedent`a\xa0b`
'a\\xa0\\tb'
> ⏎
```
(For people stumbling upon this issue: https://github.com/Ma…
-
## Expected Behavior
Code should be easy to read and tabbed appropriately for general stylistic optimization and so that python editors can parse it properly.
## Current Behavior
There …