dave.m wrote: > I need to center the license text in a TextEdit Window, this widget > is 55 char large. > I split the file in lines of 55 char: > > > The problem 1 (tab related) is in centred input: > in: > [ tab space ] Gnu Gpl [ tab space ]| <- 70 char > | > out: > [ tab space ] Gnu Gpl [ tab ]| <- 55 char > > So the output text is right aligned. > How can i center the text in a 55 char space? > > > The problem 2 (\n related) is in carriage return: > in: > bla bla bla ...................................bl > a > out: > bla bla bla ... > bl > a > > Should i delete all "\n" that not follow a '.'? > No. I think you should reformat gpl.txt in a text editor so that it's exactly the way you want it to look. Then display your new file in the widget ?? Otherwise you will be writing a text formatter ;) daz