Ask Your Question

Move every second line to the second column [closed]

asked 2017-04-21 00:40:39 +0200

Mikol gravatar image

updated 2020-07-22 07:51:04 +0200

Alex Kemp gravatar image

I would like to split the vocabulary into a dictionary into two columns. For this I need to move every second row to the second column. How can I achieve this?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Mikol
close date 2017-04-23 02:54:49.755137

2 Answers

Sort by » oldest newest most voted

answered 2017-04-21 14:56:52 +0200

Lupp gravatar image

updated 2017-04-21 15:36:58 +0200

I don't think there is a native solution in 'Writer'. You will have to use an additional application/module.

If I understand correctly what you have and what you want to achieve:
There are many solutions I can think of, and some of them are demonstrated in this attached Calc document.
Whether a solution by formulae or one by interactive means is preferable will depend on circumstances I do not yet know. Anyway you will have to adapt everything concerning the details to suit your actual situation.

See also this attachment.

edit flag offensive delete link more


I'm newbie into subject of text formatting, but first solution work just perfect after a small search. Thank You.

Mikol gravatar imageMikol ( 2017-04-23 02:52:07 +0200 )edit

answered 2017-04-21 15:48:36 +0200

karolus gravatar image


If I'm right your are in writer and you want to replace the 1st, 3rd, 5th … paragraph-break by tab's?
I was not able to handle this by standard-find&replace nor alternate-find&replace -extension.

So I wrote down a quick python-solution, which works here with writer:

import re 
rex = re.compile(r'(.*?)\n(.*?)\n')

def tab_uneven_paras():
    doc = XSCRIPTCONTEXT.getDocument()
    doc.Text.String = rex.sub( r'\1\t\2\r', doc.Text.String)
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-04-21 00:40:39 +0200

Seen: 584 times

Last updated: Apr 21 '17