summary refs log tree commit diff stats
path: root/changelog.md
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2020-09-22 10:43:12 +0200
committerGitHub <noreply@github.com>2020-09-22 10:43:12 +0200
commitd67c5cb75171fcbf1ca9078452e8fcbe36fc79bc (patch)
tree461841c502d8921b1b4b42c46f66930ad17f6f79 /changelog.md
parentaca9c5fb30fe2de12671e9103e93b81201bb8e71 (diff)
downloadNim-d67c5cb75171fcbf1ca9078452e8fcbe36fc79bc.tar.gz
Add strutils.indentation and make unindent use it (#15264)
* Add strutils.indentation and make unindent use it

* Code style

* Fix bootstrapping

* Improve wording

* Fix test

* Introduce without breaking change

* Fix

* Reduce diff

* Fix docs link

* Add since annotation

* Update changelog
Diffstat (limited to 'changelog.md')
-rw-r--r--changelog.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md
index e7afaa229..1bc1d7303 100644
--- a/changelog.md
+++ b/changelog.md
@@ -187,6 +187,15 @@
 
 - Add missing attributes and methods to `dom.Navigator` like `deviceMemory`, `onLine`, `vibrate()`, etc.
 
+- Added `strutils.indentation` and `strutils.dedent` which enable indented string literals:
+  ```nim
+  import strutils
+  echo dedent """
+    This
+      is
+        cool!
+    """
+  ``` 
 
 ## Language changes