On Thu, 10 Nov 2005, Dave Horsfall wrote:
> Before I go writing one, does anyone have a utility that pretty-prints
> a directory?
>
> E.g. something like:
>
> dc=example,dc=com
> ou=People,dc=example,dc=com
> cn=Fred,ou=People,dc=example,dc=com
> ou=Hosts,dc=example,dc=com
> cn=server1,ou=Hosts,dc=example,dc=com
> cn=server2,ou=Hosts,dc=example,dc=com
How about:
dc=example,dc=com
ou=People,dc=example,dc=com
cn=Fred,ou=People,dc=example,dc=com
ou=Hosts,dc=example,dc=com
cn=server1,ou=Hosts,dc=example,dc=com
cn=server2,ou=Hosts,dc=example,dc=com
HTML does that if you put it in a box with align=right. Though some
variants of align=right will put the text as far right as possible on
the page instead of as far as necessary to accomodate the longest DN.
Anyway, we've got this at the moment though I'm sure it's terribly
wrong to not use CSS instead:
<table border="0"><tr align="right"><td><ul>
<li>dc=example,dc=com
<li>ou=People,dc=example,dc=com
<li>...
</ul></td></tr></table>
--
Hallvard
---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the
SUBJECT of the message.