We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e90b0 commit d97df3aCopy full SHA for d97df3a
docs/source/utils/index.rst
@@ -7,3 +7,4 @@ Utils
7
suppress_not_modified
8
logging
9
retry
10
+ truncate
docs/source/utils/truncate.rst
@@ -0,0 +1,10 @@
1
+✂️ truncate
2
+=============================
3
+
4
+Truncates a string to a given length.
5
6
+.. code-block:: python
+ from raito.utils.helpers.truncate import truncate
+ truncate("Hello, world!", 8) # Returns "Hello..."
0 commit comments