sorting: how to justify text over a defined column?
Posted: Mon Nov 10, 2008 11:18 am
Hello,
I wonder if there is a way to perform the following task:
We are handling very long lists/tables of html-Text which have the
following structure:
<a href="aaaa.html">xxxxxx</a><br>
<a href="bbb.html">yyy</a><br>
<a href="cccc_ccccccc_html">zzzzz zzzz</a><br>
...
...
Since the tags-code until the file-name is always of the same length,
the table can be sorted over all file names (aaaa, bbb, cccc) easily.
However, if we want to sort the text over the linked text (xx, yyyyy, zzz)
we'd have to justify it, before it can be sorted, because the file-names vary in length from line to line. To do this by hand would be too tedious.
What we therefore would like to do is, justify all linked-text chunks
(xx, yyyyy, zzz), telling TextPad to "shift the rest of the line after the first '>' of each line so that it is left-justified along Column X" (and maybe fill up the voids which then could be erased after the sorting has been done).
I hope I have expressed myself clearly,
Any help would be greatly appreciated...
A. Berg
I wonder if there is a way to perform the following task:
We are handling very long lists/tables of html-Text which have the
following structure:
<a href="aaaa.html">xxxxxx</a><br>
<a href="bbb.html">yyy</a><br>
<a href="cccc_ccccccc_html">zzzzz zzzz</a><br>
...
...
Since the tags-code until the file-name is always of the same length,
the table can be sorted over all file names (aaaa, bbb, cccc) easily.
However, if we want to sort the text over the linked text (xx, yyyyy, zzz)
we'd have to justify it, before it can be sorted, because the file-names vary in length from line to line. To do this by hand would be too tedious.
What we therefore would like to do is, justify all linked-text chunks
(xx, yyyyy, zzz), telling TextPad to "shift the rest of the line after the first '>' of each line so that it is left-justified along Column X" (and maybe fill up the voids which then could be erased after the sorting has been done).
I hope I have expressed myself clearly,
Any help would be greatly appreciated...
A. Berg