Scribus Forums

Scribus => Beginner Talk => Topic started by: celine on March 02, 2026, 10:16:52 AM

Title: Replace LF LF with CR from a csv file needed and used with SCRIBUSGENERATOR
Post by: celine on March 02, 2026, 10:16:52 AM
I need some help to substitute search and replace characters LF LF to CR ? to have correct paragraphs jutifieds.

The script :
https://wiki.scribus.net/canvas/Clean-up_the_imported_text_based_on_the_Slovak_typographic_rules

with a line :(u'\u000a'+u'\u000a'+r'+',u'\u000d')

doesn't work and it's a pity because scribus uses RTL very well !

Thank you if you have an answer
Title: Re: Replace LF LF with CR from a csv file needed and used with SCRIBUSGENERATOR
Post by: a.l.e on March 03, 2026, 07:29:42 PM
Can you please post a demo .sla file with the "wrong" text in one frame and the "right" one in another?

It does not need to be long. A few paragraphs of "Lorem Ipsum" might be enough.

That would help to understand what exactly you need and check if the proposed solution matches your wishes.
Title: Re: Replace LF LF with CR from a csv file needed and used with SCRIBUSGENERATOR
Post by: Nermander on March 03, 2026, 08:37:16 PM
I assume it is a pasted or imported text that has "typewriter" formatting (i.e. LF+LF) to get spacing between paragraphs.

I have often done  similar replacement in Word.