# Quasi-quotations, again

**URL:** <https://swi-prolog.discourse.group/t/quasi-quotations-again/2964>\
**Category:** Help!\
**Created:** [September 24, 2020, 7:34am UTC](https://swi-prolog.discourse.group/t/quasi-quotations-again/2964 "2020-09-24T07:34:57Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![peter.ludemann](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/peter.ludemann/32/48_2.png) [@peter.ludemann](https://swi-prolog.discourse.group/u/peter.ludemann)\
**Post date:** [September 25, 2020, 8:03pm UTC](https://swi-prolog.discourse.group/t/quasi-quotations-again/2964/24 "2020-09-25T20:03:06Z")

</div>

> [@jan](#):
>
> I’ve added a tentative `library(strings)` now providing dedent\_string/3

I’ve written an `indent_string/3` and am porting the Python test cases for `textwrap.indent` and `textwrap.dedent`.

In the process, I’ve discovered a few differences between Python’s `textwrap.dedent` and `library(string)`'s `dedent_string/3`, particularly with the handling of empty lines. I’ll start a new discussion on this once I’ve finished porting the test cases. I’ll also discuss `split_lines`, and why we might want something different from `split_string(In, "\n", "", Lines)`.

[Previous page](https://swi-prolog.discourse.group/t/quasi-quotations-again/2964.md?page=1)
