From d67c5cb75171fcbf1ca9078452e8fcbe36fc79bc Mon Sep 17 00:00:00 2001 From: Clyybber Date: Tue, 22 Sep 2020 10:43:12 +0200 Subject: 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 --- changelog.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'changelog.md') 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 -- cgit 1.4.1-2-gfad0