[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] convert outline to .csv

From: Andrew
Subject: [O] convert outline to .csv
Date: Mon, 18 Jan 2016 06:44:03 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)


* Micro topic 1
** Microbes are small
** You can't see them!
*** Isn't that something?
* Micro topic 2
** I hope I like the teacher
*** She will be great!
** Micro is cool!

I'd like to convert them into a .csv file like so:

"* Micro topic 1"," "** Microbes are small", "** You can't see them!", "*** 
Isn't that something?",
"* Micro topic 2", "** I hope I like the teacher", "*** She will be great!", 
"** Micro is cool!"

Where the first column contains only top level headings (lines beginning with 
one star), and the following columns are subheadings belonging to the top 
level heading.  So for each top level heading, there is one row containing 
the top level heading and its children.  I've been messing around with a 
solution in python with regular expressions as well as macros but haven't 
gotten very far.  Any suggestions?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]