DEV Community

Robiabo
Robiabo

Posted on

1 1

Margin Indentation In Strings | Problem

Hello guys,
I was practising some of Kotlin on the coding ground.
It's about margin indentation. I practised using the pipe with the function .trimMargin(). And I applied it correctly.
Now, I'm trying the triangle prefix. But it doesn't work.
Here's the link if you want to check.
http://tpcg.io/ieHQZzJs

Top comments (2)

Collapse
 
robiabo profile image
Robiabo

I applied what you mentioned and it works. Thanks a lot.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay