Hello community,
I’m trying to build a contact tiddler, where the data is extracted from a simple textfile. The data format is given, because I create the textfile with a simple cut&paste-operation and I don’t like to reformat it to save time.
What I managed so far is to split the textfile line by line. Unfortunately, there are some keywords on one line (like ‘room’ or ‘phone’) and the data is on the next line.
Max Headroom
virtual
Information
Employee Role A
Department
Domain: Domain-Name
Department: Department-Name
Team: Team-Name
Room:
Room-Number
TL-KW:
Short-Code
Mobile:
Mobile-Phone-Number
Phone:
Phone-Number
What I’m trying to achieve:
Get the keyword AND the data for further processing.
It would work easily when re-formatting the text like:
Room: Room-Number
TL-KW: Short-Code
Mobile: Mobile-Phone-Number
Phone: Phone-Number
But this is something I’m trying to avoid and I’m wondering if there is another solution for my problem.
Is there a way to process this with a ListWidget?
Any help is very appreciated, thank you in advance.